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