mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 14:07:04 +00:00
fix tests after rebase
This commit is contained in:
parent
d9a17229dc
commit
9cd008f514
@ -15,24 +15,24 @@ fn main() {
|
||||
drop(non_clone);
|
||||
};
|
||||
check_copy(&inner_non_clone);
|
||||
//~^ ERROR the trait bound `impl Future<Output = [async output]>: Copy` is not satisfied
|
||||
//~^ ERROR the trait bound `impl Future<Output = ()>: Copy` is not satisfied
|
||||
check_clone(&inner_non_clone);
|
||||
//~^ ERROR the trait bound `impl Future<Output = [async output]>: Clone` is not satisfied
|
||||
//~^ ERROR the trait bound `impl Future<Output = ()>: Clone` is not satisfied
|
||||
|
||||
let non_clone = NonClone;
|
||||
let outer_non_clone = async move {
|
||||
drop(non_clone);
|
||||
};
|
||||
check_copy(&outer_non_clone);
|
||||
//~^ ERROR the trait bound `impl Future<Output = [async output]>: Copy` is not satisfied
|
||||
//~^ ERROR the trait bound `impl Future<Output = ()>: Copy` is not satisfied
|
||||
check_clone(&outer_non_clone);
|
||||
//~^ ERROR the trait bound `impl Future<Output = [async output]>: Clone` is not satisfied
|
||||
//~^ ERROR the trait bound `impl Future<Output = ()>: Clone` is not satisfied
|
||||
|
||||
let maybe_copy_clone = async move {};
|
||||
check_copy(&maybe_copy_clone);
|
||||
//~^ ERROR the trait bound `impl Future<Output = [async output]>: Copy` is not satisfied
|
||||
//~^ ERROR the trait bound `impl Future<Output = ()>: Copy` is not satisfied
|
||||
check_clone(&maybe_copy_clone);
|
||||
//~^ ERROR the trait bound `impl Future<Output = [async output]>: Clone` is not satisfied
|
||||
//~^ ERROR the trait bound `impl Future<Output = ()>: Clone` is not satisfied
|
||||
|
||||
let inner_non_clone_fn = the_inner_non_clone_fn();
|
||||
check_copy(&inner_non_clone_fn);
|
||||
|
@ -1,8 +1,8 @@
|
||||
error[E0277]: the trait bound `impl Future<Output = [async output]>: Copy` is not satisfied
|
||||
error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
|
||||
--> $DIR/clone-impl-async.rs:17:16
|
||||
|
|
||||
LL | check_copy(&inner_non_clone);
|
||||
| ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = [async output]>`
|
||||
| ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
@ -12,11 +12,11 @@ note: required by a bound in `check_copy`
|
||||
LL | fn check_copy<T: Copy>(_x: &T) {}
|
||||
| ^^^^ required by this bound in `check_copy`
|
||||
|
||||
error[E0277]: the trait bound `impl Future<Output = [async output]>: Clone` is not satisfied
|
||||
error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
|
||||
--> $DIR/clone-impl-async.rs:19:17
|
||||
|
|
||||
LL | check_clone(&inner_non_clone);
|
||||
| ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = [async output]>`
|
||||
| ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
@ -26,11 +26,11 @@ note: required by a bound in `check_clone`
|
||||
LL | fn check_clone<T: Clone>(_x: &T) {}
|
||||
| ^^^^^ required by this bound in `check_clone`
|
||||
|
||||
error[E0277]: the trait bound `impl Future<Output = [async output]>: Copy` is not satisfied
|
||||
error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
|
||||
--> $DIR/clone-impl-async.rs:26:16
|
||||
|
|
||||
LL | check_copy(&outer_non_clone);
|
||||
| ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = [async output]>`
|
||||
| ---------- ^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
@ -40,11 +40,11 @@ note: required by a bound in `check_copy`
|
||||
LL | fn check_copy<T: Copy>(_x: &T) {}
|
||||
| ^^^^ required by this bound in `check_copy`
|
||||
|
||||
error[E0277]: the trait bound `impl Future<Output = [async output]>: Clone` is not satisfied
|
||||
error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
|
||||
--> $DIR/clone-impl-async.rs:28:17
|
||||
|
|
||||
LL | check_clone(&outer_non_clone);
|
||||
| ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = [async output]>`
|
||||
| ----------- ^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
@ -54,11 +54,11 @@ note: required by a bound in `check_clone`
|
||||
LL | fn check_clone<T: Clone>(_x: &T) {}
|
||||
| ^^^^^ required by this bound in `check_clone`
|
||||
|
||||
error[E0277]: the trait bound `impl Future<Output = [async output]>: Copy` is not satisfied
|
||||
error[E0277]: the trait bound `impl Future<Output = ()>: Copy` is not satisfied
|
||||
--> $DIR/clone-impl-async.rs:32:16
|
||||
|
|
||||
LL | check_copy(&maybe_copy_clone);
|
||||
| ---------- ^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = [async output]>`
|
||||
| ---------- ^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future<Output = ()>`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
@ -68,11 +68,11 @@ note: required by a bound in `check_copy`
|
||||
LL | fn check_copy<T: Copy>(_x: &T) {}
|
||||
| ^^^^ required by this bound in `check_copy`
|
||||
|
||||
error[E0277]: the trait bound `impl Future<Output = [async output]>: Clone` is not satisfied
|
||||
error[E0277]: the trait bound `impl Future<Output = ()>: Clone` is not satisfied
|
||||
--> $DIR/clone-impl-async.rs:34:17
|
||||
|
|
||||
LL | check_clone(&maybe_copy_clone);
|
||||
| ----------- ^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = [async output]>`
|
||||
| ----------- ^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `impl Future<Output = ()>`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
|
@ -133,6 +133,10 @@ note: required by a bound in `check_copy`
|
||||
|
|
||||
LL | fn check_copy<T: Copy>(_x: &T) {}
|
||||
| ^^^^ required by this bound in `check_copy`
|
||||
help: consider annotating `NonClone` with `#[derive(Copy)]`
|
||||
|
|
||||
LL | #[derive(Copy)]
|
||||
|
|
||||
|
||||
error[E0277]: the trait bound `NonClone: Clone` is not satisfied in `[generator@$DIR/clone-impl.rs:62:25: 65:6]`
|
||||
--> $DIR/clone-impl.rs:68:5
|
||||
@ -157,6 +161,10 @@ note: required by a bound in `check_clone`
|
||||
|
|
||||
LL | fn check_clone<T: Clone>(_x: &T) {}
|
||||
| ^^^^^ required by this bound in `check_clone`
|
||||
help: consider annotating `NonClone` with `#[derive(Clone)]`
|
||||
|
|
||||
LL | #[derive(Clone)]
|
||||
|
|
||||
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user