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.7 KiB36 linesraw
1warning: nested `impl Trait` is not allowed
2  --> $DIR/issue-57979-nested-impl-trait-in-assoc-proj.rs:21:45
3   |
4LL |     pub fn demo(_: impl Quux<Assoc=impl Foo<impl Bar>>) { }
5   |                                    ---------^^^^^^^^-
6   |                                    |        |
7   |                                    |        nested `impl Trait` here
8   |                                    outer `impl Trait`
9   |
10note: lint level defined here
11  --> $DIR/issue-57979-nested-impl-trait-in-assoc-proj.rs:16:13
12   |
13LL |     #![warn(nested_impl_trait)]
14   |             ^^^^^^^^^^^^^^^^^
15   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
16   = note: for more information, see issue #59014 <https://github.com/rust-lang/rust/issues/59014>
17
18error: nested `impl Trait` is not allowed
19  --> $DIR/issue-57979-nested-impl-trait-in-assoc-proj.rs:32:45
20   |
21LL |     pub fn demo(_: impl Quux<Assoc=impl Foo<impl Bar>>) { }
22   |                                    ---------^^^^^^^^-
23   |                                    |        |
24   |                                    |        nested `impl Trait` here
25   |                                    outer `impl Trait`
26   |
27note: lint level defined here
28  --> $DIR/issue-57979-nested-impl-trait-in-assoc-proj.rs:27:13
29   |
30LL |     #![deny(nested_impl_trait)]
31   |             ^^^^^^^^^^^^^^^^^
32   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33   = note: for more information, see issue #59014 <https://github.com/rust-lang/rust/issues/59014>
34
35error: aborting due to previous error
36