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