11warning: 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
33 |
44LL | let _ = Foo::Unit::<String>;
5- | ^^ ^^^^^^^^
5+ | ^^^^^^^^
66 |
77 = note: `#[warn(type_param_on_variant_ctor)]` on by default
88help: set the type parameter on the enum
@@ -11,87 +11,87 @@ LL | let _ = Foo::<String>::Unit;
1111 | ^^^^^^^^^^ --
1212
1313warning: 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
1515 |
1616LL | let _ = Foo::Tuple::<String>();
17- | ^^ ^^^^^^^^
17+ | ^^^^^^^^
1818 |
1919help: set the type parameter on the enum
2020 |
2121LL | let _ = Foo::<String>::Tuple();
2222 | ^^^^^^^^^^ --
2323
2424warning: 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
2626 |
2727LL | let _ = Foo::Struct::<String> {};
28- | ^^ ^^^^^^^^
28+ | ^^^^^^^^
2929 |
3030help: set the type parameter on the enum
3131 |
3232LL | let _ = Foo::<String>::Struct {};
3333 | ^^^^^^^^^^ --
3434
3535warning: 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
3737 |
3838LL | if let Foo::Unit::<String> = Foo::Unit::<String> {}
39- | ^^ ^^^^^^^^
39+ | ^^^^^^^^
4040 |
4141help: set the type parameter on the enum
4242 |
4343LL | if let Foo::Unit::<String> = Foo::<String>::Unit {}
4444 | ^^^^^^^^^^ --
4545
4646warning: 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
4848 |
4949LL | if let Foo::Unit::<String> = Foo::Unit::<String> {}
50- | ^^ ^^^^^^^^
50+ | ^^^^^^^^
5151 |
5252help: set the type parameter on the enum
5353 |
5454LL | if let Foo::<String>::Unit = Foo::Unit::<String> {}
5555 | ^^^^^^^^^^ --
5656
5757warning: 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
5959 |
6060LL | if let Foo::Tuple::<String>() = Foo::Tuple::<String>() {}
61- | ^^ ^^^^^^^^
61+ | ^^^^^^^^
6262 |
6363help: set the type parameter on the enum
6464 |
6565LL | if let Foo::Tuple::<String>() = Foo::<String>::Tuple() {}
6666 | ^^^^^^^^^^ --
6767
6868warning: 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
7070 |
7171LL | if let Foo::Tuple::<String>() = Foo::Tuple::<String>() {}
72- | ^^ ^^^^^^^^
72+ | ^^^^^^^^
7373 |
7474help: set the type parameter on the enum
7575 |
7676LL | if let Foo::<String>::Tuple() = Foo::Tuple::<String>() {}
7777 | ^^^^^^^^^^ --
7878
7979warning: 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
8181 |
8282LL | if let Foo::Struct::<String> {} = (Foo::Struct::<String> {}) {}
83- | ^^ ^^^^^^^^
83+ | ^^^^^^^^
8484 |
8585help: set the type parameter on the enum
8686 |
8787LL | if let Foo::Struct::<String> {} = (Foo::<String>::Struct {}) {}
8888 | ^^^^^^^^^^ --
8989
9090warning: 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
9292 |
9393LL | if let Foo::Struct::<String> {} = (Foo::Struct::<String> {}) {}
94- | ^^ ^^^^^^^^
94+ | ^^^^^^^^
9595 |
9696help: set the type parameter on the enum
9797 |
0 commit comments