Skip to content

Commit f32cd66

Browse files
committed
Update ui tests
1 parent c698361 commit f32cd66

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

tests/ui/box/unit/unique-object-noncopyable.stderr

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ error[E0599]: the method `clone` exists for struct `Box<dyn Foo>`, but its trait
22
--> $DIR/unique-object-noncopyable.rs:24:16
33
|
44
LL | trait Foo {
5-
| --------- doesn't satisfy `dyn Foo: Clone` or `dyn Foo: Sized`
5+
| --------- doesn't satisfy `dyn Foo: CloneToUninit`
66
...
77
LL | let _z = y.clone();
88
| ^^^^^ method cannot be called on `Box<dyn Foo>` due to unsatisfied trait bounds
99
|
1010
= note: the following trait bounds were not satisfied:
11-
`dyn Foo: Sized`
12-
which is required by `Box<dyn Foo>: Clone`
13-
`dyn Foo: Clone`
11+
`dyn Foo: CloneToUninit`
1412
which is required by `Box<dyn Foo>: Clone`
1513
= help: items from traits can only be used if the trait is implemented and in scope
1614
= note: the following trait defines an item `clone`, perhaps you need to implement it:

tests/ui/box/unit/unique-pinned-nocopy.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ error[E0599]: the method `clone` exists for struct `Box<R>`, but its trait bound
22
--> $DIR/unique-pinned-nocopy.rs:12:16
33
|
44
LL | struct R {
5-
| -------- doesn't satisfy `R: Clone`
5+
| -------- doesn't satisfy `R: CloneToUninit`
66
...
77
LL | let _j = i.clone();
88
| ^^^^^ method cannot be called on `Box<R>` due to unsatisfied trait bounds
99
|
1010
= note: the following trait bounds were not satisfied:
11-
`R: Clone`
11+
`R: CloneToUninit`
1212
which is required by `Box<R>: Clone`
13-
help: consider annotating `R` with `#[derive(Clone)]`
14-
|
15-
LL + #[derive(Clone)]
16-
LL | struct R {
17-
|
13+
note: the trait `CloneToUninit` must be implemented
14+
--> $SRC_DIR/core/src/clone.rs:LL:COL
15+
= help: items from traits can only be used if the trait is implemented and in scope
16+
= note: the following trait defines an item `clone`, perhaps you need to implement it:
17+
candidate #1: `Clone`
1818

1919
error: aborting due to 1 previous error
2020

tests/ui/generic-associated-types/issue-74824.current.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ error[E0277]: the trait bound `T: Clone` is not satisfied
1616
LL | type Copy<T>: Copy = Box<T>;
1717
| ^^^^^^ the trait `Clone` is not implemented for `T`
1818
|
19+
= note: required for `T` to implement `CloneToUninit`
1920
= note: required for `Box<T>` to implement `Clone`
2021
= note: required for `<Self as UnsafeCopy>::Copy<T>` to implement `Copy`
2122
note: required by a bound in `UnsafeCopy::Copy`

tests/ui/generic-associated-types/issue-74824.next.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ error[E0277]: the trait bound `T: Clone` is not satisfied
1616
LL | type Copy<T>: Copy = Box<T>;
1717
| ^^^^^^ the trait `Clone` is not implemented for `T`
1818
|
19+
= note: required for `T` to implement `CloneToUninit`
1920
= note: required for `Box<T>` to implement `Clone`
2021
= note: required for `<Self as UnsafeCopy>::Copy<T>` to implement `Copy`
2122
note: required by a bound in `UnsafeCopy::Copy`

0 commit comments

Comments
 (0)