11warning: trait method call on a coerced never type
2- --> $DIR/method-on-never.rs:17 :7
2+ --> $DIR/method-on-never.rs:40 :7
33 |
44LL | x.method();
55 | ^^^^^^
@@ -10,7 +10,7 @@ LL | x.method();
1010 = note: `#[warn(trait_method_on_coerced_never_type)]` (part of `#[warn(future_incompatible)]`) on by default
1111
1212warning: trait method call on a coerced never type
13- --> $DIR/method-on-never.rs:21 :17
13+ --> $DIR/method-on-never.rs:44 :17
1414 |
1515LL | { loop {} }.method();
1616 | ^^^^^^
@@ -19,11 +19,31 @@ LL | { loop {} }.method();
1919 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2020 = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
2121
22- warning: 2 warnings emitted
22+ warning: trait method call on a coerced never type
23+ --> $DIR/method-on-never.rs:49:16
24+ |
25+ LL | y => y.method(),
26+ | ^^^^^^
27+ |
28+ = help: consider providing a type annotation
29+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
30+ = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
31+
32+ warning: trait method call on a coerced never type
33+ --> $DIR/method-on-never.rs:55:27
34+ |
35+ LL | error => (&error).anyhow_kind().new(error),
36+ | ^^^^^^^^^^^
37+ |
38+ = help: consider providing a type annotation
39+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40+ = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
41+
42+ warning: 4 warnings emitted
2343
2444Future incompatibility report: Future breakage diagnostic:
2545warning: trait method call on a coerced never type
26- --> $DIR/method-on-never.rs:17 :7
46+ --> $DIR/method-on-never.rs:40 :7
2747 |
2848LL | x.method();
2949 | ^^^^^^
@@ -35,7 +55,7 @@ LL | x.method();
3555
3656Future breakage diagnostic:
3757warning: trait method call on a coerced never type
38- --> $DIR/method-on-never.rs:21 :17
58+ --> $DIR/method-on-never.rs:44 :17
3959 |
4060LL | { loop {} }.method();
4161 | ^^^^^^
@@ -45,3 +65,27 @@ LL | { loop {} }.method();
4565 = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
4666 = note: `#[warn(trait_method_on_coerced_never_type)]` (part of `#[warn(future_incompatible)]`) on by default
4767
68+ Future breakage diagnostic:
69+ warning: trait method call on a coerced never type
70+ --> $DIR/method-on-never.rs:49:16
71+ |
72+ LL | y => y.method(),
73+ | ^^^^^^
74+ |
75+ = help: consider providing a type annotation
76+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
77+ = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
78+ = note: `#[warn(trait_method_on_coerced_never_type)]` (part of `#[warn(future_incompatible)]`) on by default
79+
80+ Future breakage diagnostic:
81+ warning: trait method call on a coerced never type
82+ --> $DIR/method-on-never.rs:55:27
83+ |
84+ LL | error => (&error).anyhow_kind().new(error),
85+ | ^^^^^^^^^^^
86+ |
87+ = help: consider providing a type annotation
88+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
89+ = note: for more information, see issue #156047 <https://github.com/rust-lang/rust/issues/156047>
90+ = note: `#[warn(trait_method_on_coerced_never_type)]` (part of `#[warn(future_incompatible)]`) on by default
91+
0 commit comments