fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
376 B11 linesraw
1// run-rustfix
2fn main() {
3    assert_eq!(1, 1);
4    //~^ ERROR expected function, found macro `assert_eq`
5    assert_eq! { 1, 1 };
6    //~^ ERROR expected struct, variant or union type, found macro `assert_eq`
7    //~| ERROR expected identifier, found `1`
8    //~| ERROR expected identifier, found `1`
9    assert![true];
10    //~^ ERROR expected value, found macro `assert`
11}