]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/defaults-in-other-trait-items.stderr
Fix rebase damage
[rust.git] / src / test / ui / associated-types / defaults-in-other-trait-items.stderr
1 error[E0308]: mismatched types
2   --> $DIR/defaults-in-other-trait-items.rs:9:13
3    |
4 LL |         let () = p;
5    |             ^^ expected associated type, found `()`
6    |
7    = note: expected associated type `<Self as Tr>::A`
8                     found unit type `()`
9    = note: consider constraining the associated type `<Self as Tr>::A` to `()` or calling a method that returns `<Self as Tr>::A`
10    = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
11
12 error[E0308]: mismatched types
13   --> $DIR/defaults-in-other-trait-items.rs:39:25
14    |
15 LL |     const C: Self::Ty = 0u8;
16    |                         ^^^ expected associated type, found `u8`
17    |
18    = note: expected associated type `<Self as AssocConst>::Ty`
19                          found type `u8`
20    = note: consider constraining the associated type `<Self as AssocConst>::Ty` to `u8` or calling a method that returns `<Self as AssocConst>::Ty`
21    = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.