rust/tests/ui/lifetimes/issue-34979.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
535 B
Plaintext
Raw Normal View History

error[E0283]: type annotations needed: cannot satisfy `&'a (): Foo`
2020-05-06 12:13:51 -05:00
--> $DIR/issue-34979.rs:6:13
|
LL | &'a (): Foo,
| ^^^
2020-05-06 12:13:51 -05:00
|
note: multiple `impl`s or `where` clauses satisfying `&'a (): Foo` found
--> $DIR/issue-34979.rs:2:1
|
LL | impl<'a, T> Foo for &'a T {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | &'a (): Foo,
| ^^^
LL | &'static (): Foo;
| ^^^
2020-05-06 12:13:51 -05:00
error: aborting due to 1 previous error
2020-05-06 12:13:51 -05:00
For more information about this error, try `rustc --explain E0283`.