1
Fork 0
rust/src/test/ui/const-generics/different_byref.full.stderr

13 lines
361 B
Text
Raw Normal View History

error[E0308]: mismatched types
2020-11-17 11:44:21 +01:00
--> $DIR/different_byref.rs:12:9
|
LL | x = Const::<{ [4] }> {};
| ^^^^^^^^^^^^^^^^^^^ expected `3_usize`, found `4_usize`
|
= note: expected type `[3_usize]`
found type `[4_usize]`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.