1
1
warning: type parameter on variant
2
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:18:22
2
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:18:24
3
3
|
4
4
LL | let _ = Foo::Unit::<String>;
5
- | ^^ ^^^^^^^^
5
+ | ^^^^^^^^
6
6
|
7
7
= note: `#[warn(type_param_on_variant_ctor)]` on by default
8
8
help: set the type parameter on the enum
@@ -11,87 +11,87 @@ LL | let _ = Foo::<String>::Unit;
11
11
| ^^^^^^^^^^ --
12
12
13
13
warning: type parameter on variant
14
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:19:23
14
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:19:25
15
15
|
16
16
LL | let _ = Foo::Tuple::<String>();
17
- | ^^ ^^^^^^^^
17
+ | ^^^^^^^^
18
18
|
19
19
help: set the type parameter on the enum
20
20
|
21
21
LL | let _ = Foo::<String>::Tuple();
22
22
| ^^^^^^^^^^ --
23
23
24
24
warning: type parameter on variant
25
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:20:24
25
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:20:26
26
26
|
27
27
LL | let _ = Foo::Struct::<String> {};
28
- | ^^ ^^^^^^^^
28
+ | ^^^^^^^^
29
29
|
30
30
help: set the type parameter on the enum
31
31
|
32
32
LL | let _ = Foo::<String>::Struct {};
33
33
| ^^^^^^^^^^ --
34
34
35
35
warning: type parameter on variant
36
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:21:43
36
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:21:45
37
37
|
38
38
LL | if let Foo::Unit::<String> = Foo::Unit::<String> {}
39
- | ^^ ^^^^^^^^
39
+ | ^^^^^^^^
40
40
|
41
41
help: set the type parameter on the enum
42
42
|
43
43
LL | if let Foo::Unit::<String> = Foo::<String>::Unit {}
44
44
| ^^^^^^^^^^ --
45
45
46
46
warning: type parameter on variant
47
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:21:21
47
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:21:23
48
48
|
49
49
LL | if let Foo::Unit::<String> = Foo::Unit::<String> {}
50
- | ^^ ^^^^^^^^
50
+ | ^^^^^^^^
51
51
|
52
52
help: set the type parameter on the enum
53
53
|
54
54
LL | if let Foo::<String>::Unit = Foo::Unit::<String> {}
55
55
| ^^^^^^^^^^ --
56
56
57
57
warning: type parameter on variant
58
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:24:47
58
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:24:49
59
59
|
60
60
LL | if let Foo::Tuple::<String>() = Foo::Tuple::<String>() {}
61
- | ^^ ^^^^^^^^
61
+ | ^^^^^^^^
62
62
|
63
63
help: set the type parameter on the enum
64
64
|
65
65
LL | if let Foo::Tuple::<String>() = Foo::<String>::Tuple() {}
66
66
| ^^^^^^^^^^ --
67
67
68
68
warning: type parameter on variant
69
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:24:22
69
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:24:24
70
70
|
71
71
LL | if let Foo::Tuple::<String>() = Foo::Tuple::<String>() {}
72
- | ^^ ^^^^^^^^
72
+ | ^^^^^^^^
73
73
|
74
74
help: set the type parameter on the enum
75
75
|
76
76
LL | if let Foo::<String>::Tuple() = Foo::Tuple::<String>() {}
77
77
| ^^^^^^^^^^ --
78
78
79
79
warning: type parameter on variant
80
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:27:51
80
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:27:53
81
81
|
82
82
LL | if let Foo::Struct::<String> {} = (Foo::Struct::<String> {}) {}
83
- | ^^ ^^^^^^^^
83
+ | ^^^^^^^^
84
84
|
85
85
help: set the type parameter on the enum
86
86
|
87
87
LL | if let Foo::Struct::<String> {} = (Foo::<String>::Struct {}) {}
88
88
| ^^^^^^^^^^ --
89
89
90
90
warning: type parameter on variant
91
- --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:27:23
91
+ --> $DIR/lifetime-in-def-not-in-path-issue-69356.rs:27:25
92
92
|
93
93
LL | if let Foo::Struct::<String> {} = (Foo::Struct::<String> {}) {}
94
- | ^^ ^^^^^^^^
94
+ | ^^^^^^^^
95
95
|
96
96
help: set the type parameter on the enum
97
97
|
0 commit comments