1 // Tests that a suggestion is issued if the user wrote a colon instead of
2 // a path separator in a match arm.
13 fn f() -> Foo { Foo::Bar }
18 //~^ ERROR: expected one of
19 //~| HELP: maybe write a path separator here
24 //~^ ERROR: expected one of
25 //~| HELP: maybe write a path separator here
30 //~^ ERROR: expected one of
31 //~| HELP: maybe write a path separator here
35 qux: Foo::Baz if true => {}
36 //~^ ERROR: expected one of
37 //~| HELP: maybe write a path separator here
40 if let Foo:Bar = f() {
41 //~^ ERROR: expected one of
42 //~| HELP: maybe write a path separator here
48 ref qux: Foo::Baz => {}
49 //~^ ERROR: expected one of
50 //~| HELP: maybe write a path separator here
57 mut qux: Foo::Baz => {}
58 //~^ ERROR: expected one of
59 //~| HELP: maybe write a path separator here
69 //~^ ERROR: expected one of
70 //~| HELP: maybe write a path separator here
75 //~^ ERROR: expected one of
76 //~| HELP: maybe write a path separator here