]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0520.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0520.stderr
index be7b95465a5f7db77f87023d7ac35bfb8c8c8c06..65ebfcdbe32ca79853b093031dab165e404a6234 100644 (file)
@@ -11,13 +11,11 @@ LL | #![feature(specialization)]
 error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default`
   --> $DIR/E0520.rs:17:5
    |
-LL | / impl<T: Clone> SpaceLlama for T {
-LL | |     fn fly(&self) {}
-LL | | }
-   | |_- parent `impl` is here
+LL | impl<T: Clone> SpaceLlama for T {
+   | ------------------------------- parent `impl` is here
 ...
-LL |       default fn fly(&self) {}
-   |       ^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
+LL |     default fn fly(&self) {}
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^ cannot specialize default item `fly`
    |
    = note: to specialize, `fly` in the parent `impl` must be marked `default`