]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/raw/raw-literal-keywords.rs
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / parser / raw / raw-literal-keywords.rs
1 fn test_if() {
2     r#if true { } //~ ERROR found keyword `true`
3 }
4
5 fn test_struct() {
6     r#struct Test; //~ ERROR found `Test`
7 }
8
9 fn test_union() {
10     r#union Test; //~ ERROR found `Test`
11 }
12
13 fn test_if_2() {
14     let _ = r#if; //~ ERROR cannot find value `r#if` in this scope
15 }
16
17 fn test_struct_2() {
18     let _ = r#struct; //~ ERROR cannot find value `r#struct` in this scope
19 }
20
21 fn test_union_2() {
22     let _ = r#union; //~ ERROR cannot find value `union` in this scope
23 }
24
25 fn main() {}