fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.6 KiB30 linesraw
1error[E0666]: nested `impl Trait` is not allowed
2  --> $DIR/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs:18:59
3   |
4LL |     pub fn demo(_: impl Quux<Assoc=super::Deeper<impl Foo<impl Bar>>>) { }
5   |                                                  ---------^^^^^^^^-
6   |                                                  |        |
7   |                                                  |        nested `impl Trait` here
8   |                                                  outer `impl Trait`
9
10error[E0666]: nested `impl Trait` is not allowed
11  --> $DIR/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs:28:59
12   |
13LL |     pub fn demo(_: impl Quux<Assoc=super::Deeper<impl Foo<impl Bar>>>) { }
14   |                                                  ---------^^^^^^^^-
15   |                                                  |        |
16   |                                                  |        nested `impl Trait` here
17   |                                                  outer `impl Trait`
18
19error[E0666]: nested `impl Trait` is not allowed
20  --> $DIR/issue-57979-deeply-nested-impl-trait-in-assoc-proj.rs:38:59
21   |
22LL |     pub fn demo(_: impl Quux<Assoc=super::Deeper<impl Foo<impl Bar>>>) { }
23   |                                                  ---------^^^^^^^^-
24   |                                                  |        |
25   |                                                  |        nested `impl Trait` here
26   |                                                  outer `impl Trait`
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0666`.