rust/src/test/ui/kindck/kindck-copy.stderr

109 lines
4.6 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `&'static mut isize: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:27:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<&'static mut isize>();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `&'static mut isize`
|
= help: the following implementations were found:
<isize as std::marker::Copy>
error[E0277]: the trait bound `&'a mut isize: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:28:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<&'a mut isize>();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `&'a mut isize`
|
= help: the following implementations were found:
<isize as std::marker::Copy>
error[E0277]: the trait bound `std::boxed::Box<isize>: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:31:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<Box<isize>>();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<isize>`
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:32:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<String>();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
error[E0277]: the trait bound `std::vec::Vec<isize>: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:33:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<Vec<isize> >();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::vec::Vec<isize>`
error[E0277]: the trait bound `std::boxed::Box<&'a mut isize>: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:34:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<Box<&'a mut isize>>();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<&'a mut isize>`
error[E0277]: the trait bound `std::boxed::Box<dyn Dummy>: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:42:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-05-28 18:46:13 +00:00
LL | assert_copy::<Box<dyn Dummy>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<dyn Dummy>`
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `std::boxed::Box<dyn Dummy + std::marker::Send>: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:43:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-05-28 18:46:13 +00:00
LL | assert_copy::<Box<dyn Dummy + Send>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::boxed::Box<dyn Dummy + std::marker::Send>`
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `&'a mut (dyn Dummy + std::marker::Send + 'a): std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:46:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-05-28 18:46:13 +00:00
LL | assert_copy::<&'a mut (dyn Dummy + Send)>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `&'a mut (dyn Dummy + std::marker::Send + 'a)`
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `MyNoncopyStruct: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:64:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<MyNoncopyStruct>();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `MyNoncopyStruct`
error[E0277]: the trait bound `std::rc::Rc<isize>: std::marker::Copy` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/kindck-copy.rs:67:5
2018-08-08 12:28:26 +00:00
|
LL | fn assert_copy<T:Copy>() { }
| ----------- ---- required by this bound in `assert_copy`
...
2019-03-09 12:03:44 +00:00
LL | assert_copy::<Rc<isize>>();
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::rc::Rc<isize>`
error: aborting due to 11 previous errors
For more information about this error, try `rustc --explain E0277`.