]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-34979.stderr
Rollup merge of #90018 - GuillaumeGomez:too-long-item-names, r=jsha
[rust.git] / src / test / ui / lifetimes / issue-34979.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/issue-34979.rs:6:13
3    |
4 LL |     &'a (): Foo,
5    |             ^^^ cannot infer type for reference `&'a ()`
6    |
7    = note: cannot satisfy `&'a (): Foo`
8 note: required by a bound in `Foo`
9   --> $DIR/issue-34979.rs:1:1
10    |
11 LL | trait Foo {}
12    | ^^^^^^^^^ required by this bound in `Foo`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0283`.