]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/issue-26681.rs:17:39 | |
3 | | | |
9ffffee4 FG |
4 | LL | type Fv: Foo = u8; |
5 | | ------------------ associated type defaults can't be assumed inside the trait defining them | |
74b04a01 XL |
6 | LL | const C: <Self::Fv as Foo>::Bar = 6665; |
7 | | ^^^^ expected associated type, found integer | |
8 | | | |
9 | = note: expected associated type `<<Self as Baz>::Fv as Foo>::Bar` | |
10 | found type `{integer}` | |
74b04a01 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0308`. |