1
1
error: non-defining opaque type use in defining scope
2
- --> $DIR/generic_duplicate_param_use.rs:25 :30
2
+ --> $DIR/generic_duplicate_param_use.rs:21 :30
3
3
|
4
4
LL | fn one_ty<T: Debug>(t: T) -> TwoTys<T, T> {
5
5
| ^^^^^^^^^^^^ generic argument `T` used twice
@@ -11,7 +11,7 @@ LL | type TwoTys<T, U> = impl Debug;
11
11
| ^^^^^^^^^^
12
12
13
13
error: non-defining opaque type use in defining scope
14
- --> $DIR/generic_duplicate_param_use.rs:27 :5
14
+ --> $DIR/generic_duplicate_param_use.rs:23 :5
15
15
|
16
16
LL | t
17
17
| ^
@@ -23,49 +23,49 @@ LL | type TwoTys<T, U> = impl Debug;
23
23
| ^ ^
24
24
25
25
error: non-defining opaque type use in defining scope
26
- --> $DIR/generic_duplicate_param_use.rs:31 :36
26
+ --> $DIR/generic_duplicate_param_use.rs:27 :36
27
27
|
28
28
LL | fn one_lifetime<'a>(t: &'a u32) -> TwoLifetimes<'a, 'a> {
29
29
| ^^^^^^^^^^^^^^^^^^^^ generic argument `'a` used twice
30
30
|
31
31
note: for this opaque type
32
- --> $DIR/generic_duplicate_param_use.rs:21 :29
32
+ --> $DIR/generic_duplicate_param_use.rs:17 :29
33
33
|
34
- LL | type TwoLifetimes<'a, 'b> = impl Debug + Captures<'a> + Captures<'b> ;
35
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
+ LL | type TwoLifetimes<'a, 'b> = impl Debug;
35
+ | ^^^^^^^^^^
36
36
37
37
error: non-defining opaque type use in defining scope
38
- --> $DIR/generic_duplicate_param_use.rs:33 :5
38
+ --> $DIR/generic_duplicate_param_use.rs:29 :5
39
39
|
40
40
LL | t
41
41
| ^
42
42
|
43
43
note: lifetime used multiple times
44
- --> $DIR/generic_duplicate_param_use.rs:21 :19
44
+ --> $DIR/generic_duplicate_param_use.rs:17 :19
45
45
|
46
- LL | type TwoLifetimes<'a, 'b> = impl Debug + Captures<'a> + Captures<'b> ;
46
+ LL | type TwoLifetimes<'a, 'b> = impl Debug;
47
47
| ^^ ^^
48
48
49
49
error: non-defining opaque type use in defining scope
50
- --> $DIR/generic_duplicate_param_use.rs:37 :50
50
+ --> $DIR/generic_duplicate_param_use.rs:33 :50
51
51
|
52
52
LL | fn one_const<const N: usize>(t: *mut [u8; N]) -> TwoConsts<N, N> {
53
53
| ^^^^^^^^^^^^^^^ generic argument `N` used twice
54
54
|
55
55
note: for this opaque type
56
- --> $DIR/generic_duplicate_param_use.rs:23 :50
56
+ --> $DIR/generic_duplicate_param_use.rs:19 :50
57
57
|
58
58
LL | type TwoConsts<const X: usize, const Y: usize> = impl Debug;
59
59
| ^^^^^^^^^^
60
60
61
61
error: non-defining opaque type use in defining scope
62
- --> $DIR/generic_duplicate_param_use.rs:39 :5
62
+ --> $DIR/generic_duplicate_param_use.rs:35 :5
63
63
|
64
64
LL | t
65
65
| ^
66
66
|
67
67
note: constant used multiple times
68
- --> $DIR/generic_duplicate_param_use.rs:23 :16
68
+ --> $DIR/generic_duplicate_param_use.rs:19 :16
69
69
|
70
70
LL | type TwoConsts<const X: usize, const Y: usize> = impl Debug;
71
71
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
0 commit comments