Mark lazy_type_alias as incomplete
This commit is contained in:
parent
4c96822796
commit
4b58ae0bb8
5 changed files with 15 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
// check-pass
|
||||
|
||||
#![feature(lazy_type_alias)]
|
||||
//~^ WARN the feature `lazy_type_alias` is incomplete and may not be safe to use
|
||||
|
||||
enum Enum {
|
||||
Unit,
|
||||
|
|
|
|||
11
tests/ui/type-alias/lazy-type-alias-enum-variant.stderr
Normal file
11
tests/ui/type-alias/lazy-type-alias-enum-variant.stderr
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
warning: the feature `lazy_type_alias` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/lazy-type-alias-enum-variant.rs:4:12
|
||||
|
|
||||
LL | #![feature(lazy_type_alias)]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #112792 <https://github.com/rust-lang/rust/issues/112792> for more information
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue