]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suffixed-literal-meta.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / suffixed-literal-meta.rs
1 #![feature(rustc_attrs)]
2
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
15 fn main() {}