2018-03-09 23:56:40 -06:00
|
|
|
fn test_if() {
|
|
|
|
r#if true { } //~ ERROR found `true`
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test_struct() {
|
|
|
|
r#struct Test; //~ ERROR found `Test`
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test_union() {
|
|
|
|
r#union Test; //~ ERROR found `Test`
|
2019-07-12 20:37:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn test_if_2() {
|
|
|
|
let _ = r#if; //~ ERROR cannot find value `if` in this scope
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test_struct_2() {
|
|
|
|
let _ = r#struct; //~ ERROR cannot find value `struct` in this scope
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test_union_2() {
|
|
|
|
let _ = r#union; //~ ERROR cannot find value `union` in this scope
|
2018-03-09 23:56:40 -06:00
|
|
|
}
|
2019-01-06 09:33:05 -06:00
|
|
|
|
|
|
|
fn main() {}
|