summaryrefslogtreecommitdiffstats
path: root/tests/ui/fmt/ifmt-unknown-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/fmt/ifmt-unknown-trait.rs')
-rw-r--r--tests/ui/fmt/ifmt-unknown-trait.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/fmt/ifmt-unknown-trait.rs b/tests/ui/fmt/ifmt-unknown-trait.rs
new file mode 100644
index 000000000..158152c89
--- /dev/null
+++ b/tests/ui/fmt/ifmt-unknown-trait.rs
@@ -0,0 +1,4 @@
+fn main() {
+ format!("{:notimplemented}", "3");
+ //~^ ERROR: unknown format trait `notimplemented`
+}