|
| 1 | +warning: the feature `const_generics` is incomplete and may cause the compiler to crash |
| 2 | + --> $DIR/issue-67185-2.rs:1:12 |
| 3 | + | |
| 4 | +LL | #![feature(const_generics)] |
| 5 | + | ^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `#[warn(incomplete_features)]` on by default |
| 8 | + |
| 9 | +error[E0308]: mismatched types |
| 10 | + --> $DIR/issue-67185-2.rs:15:1 |
| 11 | + | |
| 12 | +LL | / trait Foo |
| 13 | +LL | | where |
| 14 | +LL | | [<u8 as Baz>::Quaks; 2]: Bar, |
| 15 | +LL | | <u8 as Baz>::Quaks: Bar, |
| 16 | +LL | | { |
| 17 | +LL | | } |
| 18 | + | |_^ expected `3usize`, found `4usize` |
| 19 | + | |
| 20 | + = note: expected type `3usize` |
| 21 | + found type `4usize` |
| 22 | + |
| 23 | +error[E0308]: mismatched types |
| 24 | + --> $DIR/issue-67185-2.rs:24:6 |
| 25 | + | |
| 26 | +LL | impl Foo for FooImpl {} |
| 27 | + | ^^^ expected `3usize`, found `4usize` |
| 28 | + | |
| 29 | + = note: expected type `3usize` |
| 30 | + found type `4usize` |
| 31 | + |
| 32 | +error[E0308]: mismatched types |
| 33 | + --> $DIR/issue-67185-2.rs:24:6 |
| 34 | + | |
| 35 | +LL | impl Foo for FooImpl {} |
| 36 | + | ^^^ expected `2usize`, found `3usize` |
| 37 | + | |
| 38 | + = note: expected type `2usize` |
| 39 | + found type `3usize` |
| 40 | + |
| 41 | +error[E0308]: mismatched types |
| 42 | + --> $DIR/issue-67185-2.rs:28:1 |
| 43 | + | |
| 44 | +LL | fn f(_: impl Foo) {} |
| 45 | + | ^^^^^^^^^^^^^^^^^^^^ expected `2usize`, found `3usize` |
| 46 | + | |
| 47 | + = note: expected type `2usize` |
| 48 | + found type `3usize` |
| 49 | + |
| 50 | +error[E0308]: mismatched types |
| 51 | + --> $DIR/issue-67185-2.rs:28:1 |
| 52 | + | |
| 53 | +LL | fn f(_: impl Foo) {} |
| 54 | + | ^^^^^^^^^^^^^^^^^^^^ expected `3usize`, found `4usize` |
| 55 | + | |
| 56 | + = note: expected type `3usize` |
| 57 | + found type `4usize` |
| 58 | + |
| 59 | +error: aborting due to 5 previous errors |
| 60 | + |
| 61 | +For more information about this error, try `rustc --explain E0308`. |
0 commit comments