about summary refs log tree commit diff
path: root/src/test/ui/traits/inductive-overflow
diff options
context:
space:
mode:
authorohno418 <yutaro.ono.418@gmail.com>2022-03-31 23:58:45 +0900
committerohno418 <yutaro.ono.418@gmail.com>2022-04-05 11:14:32 +0900
commit0d2a00058b4b3d4a04712309cc4cc371a8fb8653 (patch)
treed7679066cc258ef617d33c91f9d8bc72b8ffd288 /src/test/ui/traits/inductive-overflow
parent60e50fc1cfe0bb693a5f4f93eb83ef70854531e3 (diff)
downloadrust-0d2a00058b4b3d4a04712309cc4cc371a8fb8653.tar.gz
rust-0d2a00058b4b3d4a04712309cc4cc371a8fb8653.zip
Suggest derivable trait on E0277
Diffstat (limited to 'src/test/ui/traits/inductive-overflow')
-rw-r--r--src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr b/src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
index 9ceeea4872f..d7697dcc640 100644
--- a/src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
+++ b/src/test/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
@@ -24,6 +24,10 @@ note: required by a bound in `copy`
    |
 LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
    |            ^^^^^ required by this bound in `copy`
+help: consider annotating `NoClone` with `#[derive(Copy)]`
+   |
+LL | #[derive(Copy)]
+   |
 
 error: aborting due to 2 previous errors