diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/associated-types/issue-43784-associated-type.stderr | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/associated-types/issue-43784-associated-type.stderr b/src/test/ui/associated-types/issue-43784-associated-type.stderr new file mode 100644 index 000000000..f1677b822 --- /dev/null +++ b/src/test/ui/associated-types/issue-43784-associated-type.stderr @@ -0,0 +1,19 @@ +error[E0277]: the trait bound `T: Copy` is not satisfied + --> $DIR/issue-43784-associated-type.rs:14:18 + | +LL | type Assoc = T; + | ^ the trait `Copy` is not implemented for `T` + | +note: required by a bound in `Complete::Assoc` + --> $DIR/issue-43784-associated-type.rs:5:17 + | +LL | type Assoc: Partial<Self>; + | ^^^^^^^^^^^^^ required by this bound in `Complete::Assoc` +help: consider restricting type parameter `T` + | +LL | impl<T: std::marker::Copy> Complete for T { + | +++++++++++++++++++ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. |