]> git.proxmox.com Git - rustc.git/blame - tests/ui/associated-types/issue-26681.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / associated-types / issue-26681.stderr
CommitLineData
74b04a01
XL
1error[E0308]: mismatched types
2 --> $DIR/issue-26681.rs:17:39
3 |
9ffffee4
FG
4LL | type Fv: Foo = u8;
5 | ------------------ associated type defaults can't be assumed inside the trait defining them
74b04a01
XL
6LL | 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
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0308`.