@@ -48,6 +48,36 @@ LL | type Wub = !;
4848 = help: add `#![feature(never_type)]` to the crate attributes to enable
4949 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
5050
51- error: aborting due to 5 previous errors
51+ error[E0658]: the `!` type is experimental
52+ --> $DIR/feature-gate-never_type.rs:16:43
53+ |
54+ LL | fn look_ma_no_feature_gate<F: FnOnce() -> !>() {}
55+ | ^
56+ |
57+ = note: see issue #35121 <https://github.com/rust-lang/rust/issues/35121> for more information
58+ = help: add `#![feature(never_type)]` to the crate attributes to enable
59+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
60+
61+ error[E0658]: the `!` type is experimental
62+ --> $DIR/feature-gate-never_type.rs:17:26
63+ |
64+ LL | fn tadam(f: &dyn Fn() -> !) {}
65+ | ^
66+ |
67+ = note: see issue #35121 <https://github.com/rust-lang/rust/issues/35121> for more information
68+ = help: add `#![feature(never_type)]` to the crate attributes to enable
69+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
70+
71+ error[E0658]: the `!` type is experimental
72+ --> $DIR/feature-gate-never_type.rs:21:30
73+ |
74+ LL | fn toudoum() -> impl Fn() -> ! {
75+ | ^
76+ |
77+ = note: see issue #35121 <https://github.com/rust-lang/rust/issues/35121> for more information
78+ = help: add `#![feature(never_type)]` to the crate attributes to enable
79+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
80+
81+ error: aborting due to 8 previous errors
5282
5383For more information about this error, try `rustc --explain E0658`.
0 commit comments