Skip to content

Commit 2beea2c

Browse files
committed
add test for lazy norm err
1 parent 5fe84c8 commit 2beea2c

3 files changed

+6
-4
lines changed

src/test/ui/const-generics/const-argument-cross-crate-mismatch.full.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0308]: mismatched types
2-
--> $DIR/const-argument-cross-crate-mismatch.rs:7:67
2+
--> $DIR/const-argument-cross-crate-mismatch.rs:9:67
33
|
44
LL | let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
55
| ^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
66

77
error[E0308]: mismatched types
8-
--> $DIR/const-argument-cross-crate-mismatch.rs:9:65
8+
--> $DIR/const-argument-cross-crate-mismatch.rs:11:65
99
|
1010
LL | let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
1111
| ^^^^^^^^^^^^^^^ expected an array with a fixed size of 2 elements, found one with 3 elements

src/test/ui/const-generics/const-argument-cross-crate-mismatch.min.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0308]: mismatched types
2-
--> $DIR/const-argument-cross-crate-mismatch.rs:7:67
2+
--> $DIR/const-argument-cross-crate-mismatch.rs:9:67
33
|
44
LL | let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
55
| ^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
66

77
error[E0308]: mismatched types
8-
--> $DIR/const-argument-cross-crate-mismatch.rs:9:65
8+
--> $DIR/const-argument-cross-crate-mismatch.rs:11:65
99
|
1010
LL | let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
1111
| ^^^^^^^^^^^^^^^ expected an array with a fixed size of 2 elements, found one with 3 elements

src/test/ui/const-generics/const-argument-cross-crate-mismatch.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// aux-build:const_generic_lib.rs
22
// revisions: full min
3+
#![cfg_attr(full, feature(const_generics))]
4+
#![cfg_attr(full, allow(incomplete_features))]
35

46
extern crate const_generic_lib;
57

0 commit comments

Comments
 (0)