|
1 | | -error: type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias |
2 | | - --> $DIR/bound_reduction2.rs:16:60 |
3 | | - | |
4 | | -LL | fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> { |
5 | | - | ____________________________________________________________^ |
6 | | -LL | | |
7 | | -LL | | |
8 | | -LL | | |
9 | | -... | |
10 | | -LL | | () |
11 | | -LL | | } |
12 | | - | |_^ |
13 | | - |
14 | | -error: type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias |
15 | | - --> $DIR/bound_reduction2.rs:16:60 |
16 | | - | |
17 | | -LL | fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> { |
18 | | - | ____________________________________________________________^ |
19 | | -LL | | |
20 | | -LL | | |
21 | | -LL | | |
22 | | -... | |
23 | | -LL | | () |
24 | | -LL | | } |
25 | | - | |_^ |
26 | | - |
27 | 1 | error: non-defining opaque type use in defining scope |
28 | | - --> $DIR/bound_reduction2.rs:16:1 |
| 2 | + --> $DIR/bound_reduction2.rs:16:46 |
29 | 3 | | |
30 | 4 | LL | fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> { |
31 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 5 | + | ^^^^^^^^^^^^^ |
32 | 6 | | |
33 | 7 | note: used non-generic type `<T as TraitWithAssoc>::Assoc` for generic parameter |
34 | 8 | --> $DIR/bound_reduction2.rs:9:10 |
35 | 9 | | |
36 | 10 | LL | type Foo<V> = impl Trait<V>; |
37 | 11 | | ^ |
38 | 12 |
|
39 | | -error: non-defining opaque type use in defining scope |
40 | | - --> $DIR/bound_reduction2.rs:16:1 |
41 | | - | |
42 | | -LL | fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> { |
43 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
44 | | - | |
45 | | -note: used non-generic type `_` for generic parameter |
46 | | - --> $DIR/bound_reduction2.rs:9:10 |
47 | | - | |
48 | | -LL | type Foo<V> = impl Trait<V>; |
49 | | - | ^ |
50 | | - |
51 | | -error: non-defining opaque type use in defining scope |
52 | | - --> $DIR/bound_reduction2.rs:16:1 |
53 | | - | |
54 | | -LL | fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> { |
55 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
56 | | - | |
57 | | -note: used non-generic type `_` for generic parameter |
58 | | - --> $DIR/bound_reduction2.rs:9:10 |
59 | | - | |
60 | | -LL | type Foo<V> = impl Trait<V>; |
61 | | - | ^ |
62 | | - |
63 | 13 | error: could not find defining uses |
64 | 14 | --> $DIR/bound_reduction2.rs:9:15 |
65 | 15 | | |
66 | 16 | LL | type Foo<V> = impl Trait<V>; |
67 | 17 | | ^^^^^^^^^^^^^ |
68 | 18 |
|
69 | | -error: aborting due to 6 previous errors |
| 19 | +error: aborting due to 2 previous errors |
70 | 20 |
|
0 commit comments