]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-26681.stderr
Use `can_eq` to compare types for default assoc type error
[rust.git] / tests / ui / associated-types / issue-26681.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-26681.rs:17:39
3    |
4 LL |     type Fv: Foo = u8;
5    |     ------------------ associated type defaults can't be assumed inside the trait defining them
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}`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.