mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 13:57:24 +00:00
11 lines
218 B
Rust
11 lines
218 B
Rust
#![feature(rustc_attrs)]
|
|
|
|
#[derive(Debug)]
|
|
#[rustc_layout_scalar_valid_range_start(2)]
|
|
struct NonZeroAndOneU8(u8);
|
|
|
|
fn main() {
|
|
let x: fn(u8) -> NonZeroAndOneU8 = NonZeroAndOneU8;
|
|
//~^ ERROR mismatched types
|
|
}
|