2 // compile-flags: --test
5 #[should_panic = "foo"]
6 //~^ WARN: attribute must be of the form:
12 #[should_panic(expected)]
13 //~^ WARN: argument must be of the form:
19 #[should_panic(expect)]
20 //~^ WARN: argument must be of the form:
26 #[should_panic(expected(foo, bar))]
27 //~^ WARN: argument must be of the form:
33 #[should_panic(expected = "foo", bar)]
34 //~^ WARN: argument must be of the form: