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

error: `impl Trait` is not allowed in path parameters
  --> $DIR/issue-57979-impl-trait-in-path.rs:31:52
   |
LL |     pub fn demo(_: impl Quux<(), Assoc=<() as Quux<impl Bar>>::Assoc>) { }
   |                                                    ^^^^^^^^
   |
note: lint level defined here
  --> $DIR/issue-57979-impl-trait-in-path.rs:27:13
   |
LL |     #![deny(nested_impl_trait)]
   |             ^^^^^^^^^^^^^^^^^
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #59014 <https://github.com/rust-lang/rust/issues/59014>

error: aborting due to previous error