]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-26681.stderr
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / associated-types / issue-26681.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-26681.rs:17:39
3    |
4 LL |     const C: <Self::Fv as Foo>::Bar = 6665;
5    |                                       ^^^^ expected associated type, found integer
6    |
7    = note: expected associated type `<<Self as Baz>::Fv as Foo>::Bar`
8                          found type `{integer}`
9    = help: consider constraining the associated type `<<Self as Baz>::Fv as Foo>::Bar` to `{integer}`
10    = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.