about summary refs log tree commit diff
path: root/tests/ui/parser/attribute/attr-incomplete.rs
blob: 49cb66e5f59511a101740784090d6aec637c5b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(target-os = "windows")]
//~^ ERROR expected one of `(`, `,`, `::`, or `=`, found `-`
pub fn test1() { }

#[cfg(target_os = %)]
//~^ ERROR expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `%`
pub fn test2() { }

#[cfg(target_os?)]
//~^ ERROR expected one of `(`, `,`, `::`, or `=`, found `?`
pub fn test3() { }

#[cfg[target_os]]
//~^ ERROR wrong meta list delimiters
pub fn test4() { }

pub fn main() {}