-#![feature(plugin)]
-#![plugin(clippy)]
-#![warn(panic_params)]
+
+
+#![warn(panic_params, unimplemented)]
fn missing() {
if true {
} else {
assert!(true, "here be missing values: {}");
}
+
+ panic!("{{{this}}}");
}
fn ok_single() {
assert!(if 1 == ONE { ONE == 1 } else { false });
}
+fn ok_escaped() {
+ panic!("{{ why should this not be ok? }}");
+ panic!(" or {{ that ?");
+ panic!(" or }} this ?");
+ panic!(" {or {{ that ?");
+ panic!(" }or }} this ?");
+ panic!("{{ test }");
+ panic!("{case }}");
+}
+
+fn unimplemented() {
+ unimplemented!();
+}
+
fn main() {
missing();
ok_single();
ok_bracket();
ok_inner();
ok_nomsg();
+ ok_escaped();
+ unimplemented();
}