2018-03-09 23:56:40 -06:00
|
|
|
fn test_if() {
|
|
|
|
r#if true { } //~ ERROR found `true`
|
2019-01-06 09:33:05 -06:00
|
|
|
//~| ERROR cannot find value `if` in this scope
|
2018-03-09 23:56:40 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn test_struct() {
|
|
|
|
r#struct Test; //~ ERROR found `Test`
|
2019-01-06 09:33:05 -06:00
|
|
|
//~| ERROR cannot find value `struct` in this scope
|
2018-03-09 23:56:40 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn test_union() {
|
|
|
|
r#union Test; //~ ERROR found `Test`
|
2019-01-06 09:33:05 -06:00
|
|
|
//~| 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() {}
|