diff options
| -rw-r--r-- | tests/crashes/137580.rs | 4 | ||||
| -rw-r--r-- | tests/ui/macros/format-foreign-dollar-without-spec.rs | 1 | ||||
| -rw-r--r-- | tests/ui/macros/format-foreign-dollar-without-spec.stderr | 4 |
3 files changed, 3 insertions, 6 deletions
diff --git a/tests/crashes/137580.rs b/tests/crashes/137580.rs deleted file mode 100644 index 246c80ef556..00000000000 --- a/tests/crashes/137580.rs +++ /dev/null @@ -1,4 +0,0 @@ -//@ known-bug: #137580 -fn main() { - println!("%65536$", 1); -} diff --git a/tests/ui/macros/format-foreign-dollar-without-spec.rs b/tests/ui/macros/format-foreign-dollar-without-spec.rs index 3e6a833e24a..c57c1382c8d 100644 --- a/tests/ui/macros/format-foreign-dollar-without-spec.rs +++ b/tests/ui/macros/format-foreign-dollar-without-spec.rs @@ -1,3 +1,4 @@ +// https://github.com/rust-lang/rust/issues/137580 fn main() { println!("%65536$", 1); //~^ ERROR never used diff --git a/tests/ui/macros/format-foreign-dollar-without-spec.stderr b/tests/ui/macros/format-foreign-dollar-without-spec.stderr index a20c34a1f85..d5a07c50f00 100644 --- a/tests/ui/macros/format-foreign-dollar-without-spec.stderr +++ b/tests/ui/macros/format-foreign-dollar-without-spec.stderr @@ -1,12 +1,12 @@ error: argument never used - --> $DIR/format-foreign-dollar-without-spec.rs:2:25 + --> $DIR/format-foreign-dollar-without-spec.rs:3:25 | LL | println!("%65536$", 1); | ^ argument never used | note: format specifiers use curly braces, and the conversion specifier ` ` is unknown or unsupported - --> $DIR/format-foreign-dollar-without-spec.rs:2:15 + --> $DIR/format-foreign-dollar-without-spec.rs:3:15 | LL | println!("%65536$", 1); | ^^^^^^^^ |
