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`
16 //~^ ERROR: mismatched types [E0308]
17 //~| HELP: if you meant to write a byte literal, prefix with `b`
19 // Do not issue the suggestion if the char literal is a Unicode escape
21 //~^ ERROR: mismatched types [E0308]
23 // Do not issue the suggestion if the char literal isn't ASCII
25 //~^ ERROR: mismatched types [E0308]
27 // Do not issue the suggestion if the char literal isn't ASCII
29 //~^ ERROR: mismatched types [E0308]