2018-03-09 23:56:40 -06:00
|
|
|
fn test_if() {
|
2019-10-22 13:46:19 -05:00
|
|
|
r#if true { } //~ ERROR found keyword `true`
|
2018-03-09 23:56:40 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
2019-12-03 21:01:42 -06:00
|
|
|
let _ = r#if; //~ ERROR cannot find value `r#if` in this scope
|
2019-07-12 20:37:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn test_struct_2() {
|
2019-12-03 21:01:42 -06:00
|
|
|
let _ = r#struct; //~ ERROR cannot find value `r#struct` in this scope
|
2019-07-12 20:37:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
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() {}
|