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/submit-unrecognized.stderr
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
error[E0277]: the trait bound `Thing: inventory::ErasedNode` is not satisfied
1
+
error[E0277]: the trait bound `&Thing: CoerceUnsized<&dyn inventory::ErasedNode>` is not satisfied
2
2
--> tests/ui/submit-unrecognized.rs:3:1
3
3
|
4
4
3 | inventory::submit!(Thing);
@@ -10,5 +10,11 @@ help: the trait `Collect` is not implemented for `Thing`
10
10
1 | pub struct Thing;
11
11
| ^^^^^^^^^^^^^^^^
12
12
= note: required for `Thing` to implement `inventory::ErasedNode`
13
+
note: required because it appears within the type `Thing`
14
+
--> tests/ui/submit-unrecognized.rs:1:12
15
+
|
16
+
1 | pub struct Thing;
17
+
| ^^^^^
18
+
= note: required for `&Thing` to implement `CoerceUnsized<&dyn inventory::ErasedNode>`
13
19
= note: required for the cast from `&Thing` to `&'static (dyn inventory::ErasedNode + 'static)`
14
20
= note: this error originates in the macro `$crate::__do_submit` which comes from the expansion of the macro `inventory::submit` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments