From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/kindck/kindck-copy.stderr | 155 ++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 src/test/ui/kindck/kindck-copy.stderr (limited to 'src/test/ui/kindck/kindck-copy.stderr') diff --git a/src/test/ui/kindck/kindck-copy.stderr b/src/test/ui/kindck/kindck-copy.stderr new file mode 100644 index 000000000..025a5008d --- /dev/null +++ b/src/test/ui/kindck/kindck-copy.stderr @@ -0,0 +1,155 @@ +error[E0277]: the trait bound `&'static mut isize: Copy` is not satisfied + --> $DIR/kindck-copy.rs:27:19 + | +LL | assert_copy::<&'static mut isize>(); + | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'static mut isize` + | + = help: the following other types implement trait `Copy`: + f32 + f64 + i128 + i16 + i32 + i64 + i8 + isize + and 6 others +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `&'a mut isize: Copy` is not satisfied + --> $DIR/kindck-copy.rs:28:19 + | +LL | assert_copy::<&'a mut isize>(); + | ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut isize` + | + = help: the following other types implement trait `Copy`: + f32 + f64 + i128 + i16 + i32 + i64 + i8 + isize + and 6 others +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `Box: Copy` is not satisfied + --> $DIR/kindck-copy.rs:31:19 + | +LL | assert_copy::>(); + | ^^^^^^^^^^ the trait `Copy` is not implemented for `Box` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `String: Copy` is not satisfied + --> $DIR/kindck-copy.rs:32:19 + | +LL | assert_copy::(); + | ^^^^^^ the trait `Copy` is not implemented for `String` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `Vec: Copy` is not satisfied + --> $DIR/kindck-copy.rs:33:19 + | +LL | assert_copy:: >(); + | ^^^^^^^^^^ the trait `Copy` is not implemented for `Vec` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `Box<&'a mut isize>: Copy` is not satisfied + --> $DIR/kindck-copy.rs:34:19 + | +LL | assert_copy::>(); + | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box<&'a mut isize>` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `Box: Copy` is not satisfied + --> $DIR/kindck-copy.rs:42:19 + | +LL | assert_copy::>(); + | ^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `Box: Copy` is not satisfied + --> $DIR/kindck-copy.rs:43:19 + | +LL | assert_copy::>(); + | ^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Box` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `&'a mut (dyn Dummy + Send + 'a): Copy` is not satisfied + --> $DIR/kindck-copy.rs:46:19 + | +LL | assert_copy::<&'a mut (dyn Dummy + Send)>(); + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `&'a mut (dyn Dummy + Send + 'a)` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `MyNoncopyStruct: Copy` is not satisfied + --> $DIR/kindck-copy.rs:64:19 + | +LL | assert_copy::(); + | ^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `MyNoncopyStruct` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error[E0277]: the trait bound `Rc: Copy` is not satisfied + --> $DIR/kindck-copy.rs:67:19 + | +LL | assert_copy::>(); + | ^^^^^^^^^ the trait `Copy` is not implemented for `Rc` + | +note: required by a bound in `assert_copy` + --> $DIR/kindck-copy.rs:5:18 + | +LL | fn assert_copy() { } + | ^^^^ required by this bound in `assert_copy` + +error: aborting due to 11 previous errors + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3