]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-unconstrained.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / associated-types-unconstrained.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/associated-types-unconstrained.rs:14:20
3    |
4 LL |     fn bar() -> isize;
5    |     ------------------ required by `Foo::bar`
6 ...
7 LL |     let x: isize = Foo::bar();
8    |                    ^^^^^^^^ cannot infer type
9    |
10    = note: cannot satisfy `_: Foo`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0283`.