]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr
Test illustrating that the nested_impl_trait lint should only catch shallow cases.
[rust.git] / src / test / ui / impl-trait / issue-57979-deeply-nested-impl-trait-in-assoc-proj.stderr
1 error[E0666]: nested `impl Trait` is not allowed
2   --> $DIR/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs:18:59
3    |
4 LL |     pub fn demo(_: impl Quux<Assoc=super::Deeper<impl Foo<impl Bar>>>) { }
5    |                                                  ---------^^^^^^^^-
6    |                                                  |        |
7    |                                                  |        nested `impl Trait` here
8    |                                                  outer `impl Trait`
9
10 error[E0666]: nested `impl Trait` is not allowed
11   --> $DIR/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs:28:59
12    |
13 LL |     pub fn demo(_: impl Quux<Assoc=super::Deeper<impl Foo<impl Bar>>>) { }
14    |                                                  ---------^^^^^^^^-
15    |                                                  |        |
16    |                                                  |        nested `impl Trait` here
17    |                                                  outer `impl Trait`
18
19 error[E0666]: nested `impl Trait` is not allowed
20   --> $DIR/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs:38:59
21    |
22 LL |     pub fn demo(_: impl Quux<Assoc=super::Deeper<impl Foo<impl Bar>>>) { }
23    |                                                  ---------^^^^^^^^-
24    |                                                  |        |
25    |                                                  |        nested `impl Trait` here
26    |                                                  outer `impl Trait`
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0666`.