rust/tests/ui/impl-trait/issues/issue-57979-impl-trait-in-path.stderr

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

12 lines
453 B
Text
Raw Normal View History

error[E0562]: `impl Trait` is not allowed in paths
2019-08-03 21:59:22 +02:00
--> $DIR/issue-57979-impl-trait-in-path.rs:8:48
|
2019-08-03 21:59:22 +02:00
LL | pub fn demo(_: impl Quux<(), Assoc=<() as Quux<impl Bar>>::Assoc>) { }
| ^^^^^^^^
|
= note: `impl Trait` is only allowed in arguments and return types of functions and methods
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0562`.