blob: a91e579510d4d0e7ecf51b862c1d0e33503fcb2e (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![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
}
|