]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suffixed-literal-meta.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / suffixed-literal-meta.rs
CommitLineData
17df50a5 1#![feature(rustc_attrs)]
9fa01778 2
dc9dc135
XL
3#[rustc_dummy = 1usize] //~ ERROR: suffixed literals are not allowed in attributes
4#[rustc_dummy = 1u8] //~ ERROR: suffixed literals are not allowed in attributes
5#[rustc_dummy = 1u16] //~ ERROR: suffixed literals are not allowed in attributes
6#[rustc_dummy = 1u32] //~ ERROR: suffixed literals are not allowed in attributes
7#[rustc_dummy = 1u64] //~ ERROR: suffixed literals are not allowed in attributes
8#[rustc_dummy = 1isize] //~ ERROR: suffixed literals are not allowed in attributes
9#[rustc_dummy = 1i8] //~ ERROR: suffixed literals are not allowed in attributes
10#[rustc_dummy = 1i16] //~ ERROR: suffixed literals are not allowed in attributes
11#[rustc_dummy = 1i32] //~ ERROR: suffixed literals are not allowed in attributes
12#[rustc_dummy = 1i64] //~ ERROR: suffixed literals are not allowed in attributes
13#[rustc_dummy = 1.0f32] //~ ERROR: suffixed literals are not allowed in attributes
14#[rustc_dummy = 1.0f64] //~ ERROR: suffixed literals are not allowed in attributes
15fn main() {}