1 // Tests that a suggestion is issued for type mismatch errors when a
2 // u8 is expected and a char literal which is ASCII is supplied.
8 //~^ ERROR: mismatched types [E0308]
9 //~| HELP: if you meant to write a byte literal, prefix with `b`
12 //~^ ERROR: mismatched types [E0308]
13 //~| HELP: if you meant to write a byte literal, prefix with `b`
15 // Do not issue the suggestion if the char literal isn't ASCII
17 //~^ ERROR: mismatched types [E0308]