Files
rust/tests/ui/traits/negative-bounds/simple.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-04-25 05:15:50 +00:00
error[E0277]: the trait bound `T: !Copy` is not satisfied
--> $DIR/simple.rs:10:16
2023-04-25 05:15:50 +00:00
|
LL | not_copy::<T>();
| ^ the trait bound `T: !Copy` is not satisfied
2023-04-25 05:15:50 +00:00
|
note: required by a bound in `not_copy`
--> $DIR/simple.rs:3:16
2023-04-25 05:15:50 +00:00
|
LL | fn not_copy<T: !Copy>() {}
| ^^^^^ required by this bound in `not_copy`
error[E0277]: the trait bound `T: !Copy` is not satisfied
--> $DIR/simple.rs:15:16
2023-04-25 05:15:50 +00:00
|
LL | not_copy::<T>();
| ^ the trait bound `T: !Copy` is not satisfied
2023-04-25 05:15:50 +00:00
|
note: required by a bound in `not_copy`
--> $DIR/simple.rs:3:16
2023-04-25 05:15:50 +00:00
|
LL | fn not_copy<T: !Copy>() {}
| ^^^^^ required by this bound in `not_copy`
error[E0277]: the trait bound `Copyable: !Copy` is not satisfied
--> $DIR/simple.rs:30:16
2023-04-25 05:15:50 +00:00
|
LL | not_copy::<Copyable>();
| ^^^^^^^^ the trait bound `Copyable: !Copy` is not satisfied
2023-04-25 05:15:50 +00:00
|
note: required by a bound in `not_copy`
--> $DIR/simple.rs:3:16
2023-04-25 05:15:50 +00:00
|
LL | fn not_copy<T: !Copy>() {}
| ^^^^^ required by this bound in `not_copy`
error[E0277]: the trait bound `NotNecessarilyCopyable: !Copy` is not satisfied
--> $DIR/simple.rs:37:16
2023-04-25 05:15:50 +00:00
|
LL | not_copy::<NotNecessarilyCopyable>();
| ^^^^^^^^^^^^^^^^^^^^^^ the trait bound `NotNecessarilyCopyable: !Copy` is not satisfied
2023-04-25 05:15:50 +00:00
|
note: required by a bound in `not_copy`
--> $DIR/simple.rs:3:16
2023-04-25 05:15:50 +00:00
|
LL | fn not_copy<T: !Copy>() {}
| ^^^^^ required by this bound in `not_copy`
error: aborting due to 4 previous errors
2023-04-25 05:15:50 +00:00
For more information about this error, try `rustc --explain E0277`.