Skip to content

Commit 9d4da26

Browse files
committed
Ui test changes for trybuild 1.0.66
1 parent 1caba5b commit 9d4da26

File tree

2 files changed

+69
-69
lines changed

2 files changed

+69
-69
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rust-version = "1.45"
1313

1414
[dev-dependencies]
1515
rustversion = "1.0"
16-
trybuild = { version = "1.0.49", features = ["diff"] }
16+
trybuild = { version = "1.0.66", features = ["diff"] }
1717

1818
[package.metadata.docs.rs]
1919
targets = ["x86_64-unknown-linux-gnu"]

tests/ui/missing-supertrait.stderr

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
error[E0277]: the trait bound `dyn MyTrait: Clone` is not satisfied
2-
--> tests/ui/missing-supertrait.rs:3:1
3-
|
4-
3 | dyn_clone::clone_trait_object!(MyTrait);
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6-
| |
7-
| the trait `Clone` is not implemented for `dyn MyTrait`
8-
| required by a bound introduced by this call
9-
|
10-
= help: the following other types implement trait `DynClone`:
11-
[T]
12-
str
13-
= note: required for `dyn MyTrait` to implement `DynClone`
2+
--> tests/ui/missing-supertrait.rs:3:1
3+
|
4+
3 | dyn_clone::clone_trait_object!(MyTrait);
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+
| |
7+
| the trait `Clone` is not implemented for `dyn MyTrait`
8+
| required by a bound introduced by this call
9+
|
10+
= help: the following other types implement trait `DynClone`:
11+
[T]
12+
str
13+
= note: required for `dyn MyTrait` to implement `DynClone`
1414
note: required by a bound in `clone_box`
15-
--> src/lib.rs
16-
|
17-
| T: ?Sized + DynClone,
18-
| ^^^^^^^^ required by this bound in `clone_box`
19-
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
15+
--> src/lib.rs
16+
|
17+
| T: ?Sized + DynClone,
18+
| ^^^^^^^^ required by this bound in `clone_box`
19+
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
2020

2121
error[E0277]: the trait bound `dyn MyTrait + Send: Clone` is not satisfied
22-
--> tests/ui/missing-supertrait.rs:3:1
23-
|
24-
3 | dyn_clone::clone_trait_object!(MyTrait);
25-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26-
| |
27-
| the trait `Clone` is not implemented for `dyn MyTrait + Send`
28-
| required by a bound introduced by this call
29-
|
30-
= help: the following other types implement trait `DynClone`:
31-
[T]
32-
str
33-
= note: required for `dyn MyTrait + Send` to implement `DynClone`
22+
--> tests/ui/missing-supertrait.rs:3:1
23+
|
24+
3 | dyn_clone::clone_trait_object!(MyTrait);
25+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26+
| |
27+
| the trait `Clone` is not implemented for `dyn MyTrait + Send`
28+
| required by a bound introduced by this call
29+
|
30+
= help: the following other types implement trait `DynClone`:
31+
[T]
32+
str
33+
= note: required for `dyn MyTrait + Send` to implement `DynClone`
3434
note: required by a bound in `clone_box`
35-
--> src/lib.rs
36-
|
37-
| T: ?Sized + DynClone,
38-
| ^^^^^^^^ required by this bound in `clone_box`
39-
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
35+
--> src/lib.rs
36+
|
37+
| T: ?Sized + DynClone,
38+
| ^^^^^^^^ required by this bound in `clone_box`
39+
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
4040

4141
error[E0277]: the trait bound `dyn MyTrait + Sync: Clone` is not satisfied
42-
--> tests/ui/missing-supertrait.rs:3:1
43-
|
44-
3 | dyn_clone::clone_trait_object!(MyTrait);
45-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46-
| |
47-
| the trait `Clone` is not implemented for `dyn MyTrait + Sync`
48-
| required by a bound introduced by this call
49-
|
50-
= help: the following other types implement trait `DynClone`:
51-
[T]
52-
str
53-
= note: required for `dyn MyTrait + Sync` to implement `DynClone`
42+
--> tests/ui/missing-supertrait.rs:3:1
43+
|
44+
3 | dyn_clone::clone_trait_object!(MyTrait);
45+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46+
| |
47+
| the trait `Clone` is not implemented for `dyn MyTrait + Sync`
48+
| required by a bound introduced by this call
49+
|
50+
= help: the following other types implement trait `DynClone`:
51+
[T]
52+
str
53+
= note: required for `dyn MyTrait + Sync` to implement `DynClone`
5454
note: required by a bound in `clone_box`
55-
--> src/lib.rs
56-
|
57-
| T: ?Sized + DynClone,
58-
| ^^^^^^^^ required by this bound in `clone_box`
59-
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
55+
--> src/lib.rs
56+
|
57+
| T: ?Sized + DynClone,
58+
| ^^^^^^^^ required by this bound in `clone_box`
59+
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
6060

6161
error[E0277]: the trait bound `dyn MyTrait + Send + Sync: Clone` is not satisfied
62-
--> tests/ui/missing-supertrait.rs:3:1
63-
|
64-
3 | dyn_clone::clone_trait_object!(MyTrait);
65-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66-
| |
67-
| the trait `Clone` is not implemented for `dyn MyTrait + Send + Sync`
68-
| required by a bound introduced by this call
69-
|
70-
= help: the following other types implement trait `DynClone`:
71-
[T]
72-
str
73-
= note: required for `dyn MyTrait + Send + Sync` to implement `DynClone`
62+
--> tests/ui/missing-supertrait.rs:3:1
63+
|
64+
3 | dyn_clone::clone_trait_object!(MyTrait);
65+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66+
| |
67+
| the trait `Clone` is not implemented for `dyn MyTrait + Send + Sync`
68+
| required by a bound introduced by this call
69+
|
70+
= help: the following other types implement trait `DynClone`:
71+
[T]
72+
str
73+
= note: required for `dyn MyTrait + Send + Sync` to implement `DynClone`
7474
note: required by a bound in `clone_box`
75-
--> src/lib.rs
76-
|
77-
| T: ?Sized + DynClone,
78-
| ^^^^^^^^ required by this bound in `clone_box`
79-
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)
75+
--> src/lib.rs
76+
|
77+
| T: ?Sized + DynClone,
78+
| ^^^^^^^^ required by this bound in `clone_box`
79+
= note: this error originates in the macro `$crate::__internal_clone_trait_object` which comes from the expansion of the macro `dyn_clone::clone_trait_object` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)