mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
9022bb2d6f
Co-Authored-By: Jacob Pratt <jacob@jhpratt.dev>
11 lines
271 B
Rust
11 lines
271 B
Rust
//@ compile-flags: --crate-type=lib
|
|
#![allow(incomplete_features)]
|
|
#![feature(unsafe_fields)]
|
|
|
|
// Parse errors even *with* unsafe_fields, which would make the compiler early-exit otherwise.
|
|
enum A {
|
|
TupleLike(unsafe u32), //~ ERROR
|
|
}
|
|
|
|
struct B(unsafe u32); //~ ERROR
|