]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/panic.stderr
Create lint for unimplemented!()
[rust.git] / tests / ui / panic.stderr
index 165c33cacb7da49a6301905f2ba73d4ae8b44887..786a20c031b318492072bc6c5d993e82706e426a 100644 (file)
@@ -24,5 +24,14 @@ error: you probably are missing some parameter in your format string
 15 |     panic!("{{{this}}}");
    |            ^^^^^^^^^^^^
 
-error: aborting due to 4 previous errors
+error: `unimplemented` should not be present in production code
+  --> $DIR/panic.rs:57:5
+   |
+57 |     unimplemented!();
+   |     ^^^^^^^^^^^^^^^^^
+   |
+   = note: `-D unimplemented` implied by `-D warnings`
+   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
+
+error: aborting due to 5 previous errors