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