Suggest derivable trait on E0277

This commit is contained in:
ohno418 2022-03-31 23:58:45 +09:00
parent 60e50fc1cf
commit 0d2a00058b
62 changed files with 310 additions and 0 deletions

View file

@ -9,6 +9,10 @@ note: required by a bound in `S`
|
LL | struct S<T: Clone> { a: T }
| ^^^^^ required by this bound in `S`
help: consider annotating `NoClone` with `#[derive(Clone)]`
|
LL | #[derive(Clone)]
|
error: aborting due to previous error