File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,7 @@ impl Foo for Meeshka {
1313 type Wub = !; //~ ERROR type is experimental
1414}
1515
16+ pub fn look_ma_no_feature_gate < F : FnOnce ( ) -> !> ( ) { } //~ ERROR type is experimental
17+
1618fn main ( ) {
1719}
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ 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:47
53+ |
54+ LL | pub 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: aborting due to 6 previous errors
5262
5363For more information about this error, try `rustc --explain E0658`.
You can’t perform that action at this time.
0 commit comments