]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suffixed-literal-meta.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / suffixed-literal-meta.rs
1 #![feature(custom_attribute)]
2
3 #[my_attr = 1usize] //~ ERROR: suffixed literals are not allowed in attributes
4 #[my_attr = 1u8] //~ ERROR: suffixed literals are not allowed in attributes
5 #[my_attr = 1u16] //~ ERROR: suffixed literals are not allowed in attributes
6 #[my_attr = 1u32] //~ ERROR: suffixed literals are not allowed in attributes
7 #[my_attr = 1u64] //~ ERROR: suffixed literals are not allowed in attributes
8 #[my_attr = 1isize] //~ ERROR: suffixed literals are not allowed in attributes
9 #[my_attr = 1i8] //~ ERROR: suffixed literals are not allowed in attributes
10 #[my_attr = 1i16] //~ ERROR: suffixed literals are not allowed in attributes
11 #[my_attr = 1i32] //~ ERROR: suffixed literals are not allowed in attributes
12 #[my_attr = 1i64] //~ ERROR: suffixed literals are not allowed in attributes
13 #[my_attr = 1.0f32] //~ ERROR: suffixed literals are not allowed in attributes
14 #[my_attr = 1.0f64] //~ ERROR: suffixed literals are not allowed in attributes
15 fn main() { }