about summary refs log tree commit diff
path: root/tests/ui/typeck/remove-semi-but-confused-char.rs
blob: ccc6f59344c058c2ac2c3b95093e6285db4d48e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Ensures our "remove semicolon" suggestion isn't hardcoded with a character width,
// in case it was accidentally mixed up with a greek question mark.
// issue: rust-lang/rust#123607

pub fn square(num: i32) -> i32 {
    //~^ ERROR mismatched types
    num * num;
    //~^ ERROR unknown start of token
}

fn main() {}