]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-consts/associated-const-generic-obligations.stderr
Rollup merge of #90048 - GuillaumeGomez:line-number-setting, r=jsha
[rust.git] / src / test / ui / associated-consts / associated-const-generic-obligations.stderr
1 error[E0326]: implemented const `FROM` has an incompatible type for trait
2   --> $DIR/associated-const-generic-obligations.rs:14:17
3    |
4 LL |     const FROM: Self::Out;
5    |                 --------- type in trait
6 ...
7 LL |     const FROM: &'static str = "foo";
8    |                 ^^^^^^^^^^^^ expected associated type, found `&str`
9    |
10    = note: expected associated type `<T as Foo>::Out`
11                     found reference `&'static str`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0326`.