X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fsuggestions%2Fderive-trait-for-method-call.stderr;h=2af3ba1d5bb9c47c268f3e8ea94a926d73285b52;hb=a8d8bfd3763cfde5a27dc7babd6691f1b3d65840;hp=97fc1134a94774bc4376b52323fbd8624d4fb7c4;hpb=b6cab80c181e0212966017c0abe1c3e08b50f5d4;p=rust.git diff --git a/src/test/ui/suggestions/derive-trait-for-method-call.stderr b/src/test/ui/suggestions/derive-trait-for-method-call.stderr index 97fc1134a94..2af3ba1d5bb 100644 --- a/src/test/ui/suggestions/derive-trait-for-method-call.stderr +++ b/src/test/ui/suggestions/derive-trait-for-method-call.stderr @@ -20,6 +20,17 @@ LL | let y = x.test(); `Enum: Clone` `Enum: Default` `CloneEnum: Default` +note: the following trait must be implemented + --> $SRC_DIR/core/src/default.rs:LL:COL + | +LL | / pub trait Default: Sized { +LL | | /// Returns the "default value" for a type. +LL | | /// +LL | | /// Default values are often some kind of initial value, identity value, or anything else that +... | +LL | | fn default() -> Self; +LL | | } + | |_^ help: consider annotating `Enum` with `#[derive(Clone)]` | LL | #[derive(Clone)]