]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/test-should-panic-attr.rs
2 // compile-flags: --test
5 #[should_panic = "foo"]
11 #[should_panic(expected)]
12 //~^ WARN: argument must be of the form:
18 #[should_panic(expect)]
19 //~^ WARN: argument must be of the form:
25 #[should_panic(expected(foo, bar))]
26 //~^ WARN: argument must be of the form:
32 #[should_panic(expected = "foo", bar)]
33 //~^ WARN: argument must be of the form: