add test for lazy norm err
This commit is contained in:
parent
5fe84c8958
commit
2beea2c0bf
3 changed files with 6 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
||||||
error[E0308]: mismatched types
|
error[E0308]: mismatched types
|
||||||
--> $DIR/const-argument-cross-crate-mismatch.rs:7:67
|
--> $DIR/const-argument-cross-crate-mismatch.rs:9:67
|
||||||
|
|
|
|
||||||
LL | let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
|
LL | let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
|
||||||
| ^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
|
| ^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
|
||||||
|
|
||||||
error[E0308]: mismatched types
|
error[E0308]: mismatched types
|
||||||
--> $DIR/const-argument-cross-crate-mismatch.rs:9:65
|
--> $DIR/const-argument-cross-crate-mismatch.rs:11:65
|
||||||
|
|
|
|
||||||
LL | let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
|
LL | let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
|
||||||
| ^^^^^^^^^^^^^^^ expected an array with a fixed size of 2 elements, found one with 3 elements
|
| ^^^^^^^^^^^^^^^ expected an array with a fixed size of 2 elements, found one with 3 elements
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
error[E0308]: mismatched types
|
error[E0308]: mismatched types
|
||||||
--> $DIR/const-argument-cross-crate-mismatch.rs:7:67
|
--> $DIR/const-argument-cross-crate-mismatch.rs:9:67
|
||||||
|
|
|
|
||||||
LL | let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
|
LL | let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
|
||||||
| ^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
|
| ^^^^^^^^^^ expected an array with a fixed size of 3 elements, found one with 2 elements
|
||||||
|
|
||||||
error[E0308]: mismatched types
|
error[E0308]: mismatched types
|
||||||
--> $DIR/const-argument-cross-crate-mismatch.rs:9:65
|
--> $DIR/const-argument-cross-crate-mismatch.rs:11:65
|
||||||
|
|
|
|
||||||
LL | let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
|
LL | let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
|
||||||
| ^^^^^^^^^^^^^^^ expected an array with a fixed size of 2 elements, found one with 3 elements
|
| ^^^^^^^^^^^^^^^ expected an array with a fixed size of 2 elements, found one with 3 elements
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// aux-build:const_generic_lib.rs
|
// aux-build:const_generic_lib.rs
|
||||||
// revisions: full min
|
// revisions: full min
|
||||||
|
#![cfg_attr(full, feature(const_generics))]
|
||||||
|
#![cfg_attr(full, allow(incomplete_features))]
|
||||||
|
|
||||||
extern crate const_generic_lib;
|
extern crate const_generic_lib;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue