You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/missing-supertrait.stderr
+12
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,9 @@ error[E0277]: the trait bound `dyn MyTrait: Clone` is not satisfied
14
14
note: required by a bound in `clone_box`
15
15
--> src/lib.rs
16
16
|
17
+
| pub fn clone_box<T>(t: &T) -> Box<T>
18
+
| --------- required by a bound in this function
19
+
| where
17
20
| T: ?Sized + DynClone,
18
21
| ^^^^^^^^ required by this bound in `clone_box`
19
22
= 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)
@@ -34,6 +37,9 @@ error[E0277]: the trait bound `dyn MyTrait + Send: Clone` is not satisfied
34
37
note: required by a bound in `clone_box`
35
38
--> src/lib.rs
36
39
|
40
+
| pub fn clone_box<T>(t: &T) -> Box<T>
41
+
| --------- required by a bound in this function
42
+
| where
37
43
| T: ?Sized + DynClone,
38
44
| ^^^^^^^^ required by this bound in `clone_box`
39
45
= 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)
@@ -54,6 +60,9 @@ error[E0277]: the trait bound `dyn MyTrait + Sync: Clone` is not satisfied
54
60
note: required by a bound in `clone_box`
55
61
--> src/lib.rs
56
62
|
63
+
| pub fn clone_box<T>(t: &T) -> Box<T>
64
+
| --------- required by a bound in this function
65
+
| where
57
66
| T: ?Sized + DynClone,
58
67
| ^^^^^^^^ required by this bound in `clone_box`
59
68
= 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)
@@ -74,6 +83,9 @@ error[E0277]: the trait bound `dyn MyTrait + Send + Sync: Clone` is not satisfie
74
83
note: required by a bound in `clone_box`
75
84
--> src/lib.rs
76
85
|
86
+
| pub fn clone_box<T>(t: &T) -> Box<T>
87
+
| --------- required by a bound in this function
88
+
| where
77
89
| T: ?Sized + DynClone,
78
90
| ^^^^^^^^ required by this bound in `clone_box`
79
91
= 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