about summary refs log tree commit diff
path: root/tests/ui/suggestions/raw-c-string-prefix.rs
blob: 6af72df40242c2c57bf2fc5833681178f74387f8 (plain)
1
2
3
4
5
6
7
8
9
10
// `rc` and `cr` are easy to confuse; check that we issue a suggestion to help.

//@ edition:2021

fn main() {
    rc"abc";
    //~^ ERROR: prefix `rc` is unknown
    //~| HELP: use `cr` for a raw C-string
    //~| ERROR: expected one of
}