]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/specialization/issue-50452-fail.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / specialization / issue-50452-fail.stderr
index 8e7c5037eff8fd1e3e938d8e798e1d822a8bf9c8..7249ad73871c99fd6457dd2acf0d12e07255d2b6 100644 (file)
@@ -11,13 +11,11 @@ LL | #![feature(specialization)]
 error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
   --> $DIR/issue-50452-fail.rs:10:5
    |
-LL |       fn foo() {}
-   |       ^^^^^^^^^^^ cannot specialize default item `foo`
+LL |     fn foo() {}
+   |     ^^^^^^^^^^^ cannot specialize default item `foo`
 ...
-LL | / impl<T> Foo for T {
-LL | |     fn foo() {}
-LL | | }
-   | |_- parent `impl` is here
+LL | impl<T> Foo for T {
+   | ----------------- parent `impl` is here
    |
    = note: to specialize, `foo` in the parent `impl` must be marked `default`