Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from dtolnay/const
Require inventory element type to be const constructed
- Loading branch information
Showing
4 changed files
with
64 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
error[E0277]: the trait bound `Thing: Collect` is not satisfied | ||
--> tests/ui/submit-unrecognized.rs:3:1 | ||
| | ||
3 | inventory::submit!(Thing); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Collect` is not implemented for `Thing` | ||
| | ||
note: required by a bound in `submit` | ||
--> src/lib.rs | ||
| | ||
| pub fn submit<T: Collect>(value: T) { | ||
| ^^^^^^^ required by this bound in `submit` | ||
= note: this error originates in the macro `inventory::submit` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
--> tests/ui/submit-unrecognized.rs:3:1 | ||
| | ||
3 | inventory::submit!(Thing); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Collect` is not implemented for `Thing` | ||
| | ||
= note: required because of the requirements on the impl of `ErasedNode` for `Thing` | ||
= note: required for the cast to the object type `dyn ErasedNode` | ||
= note: this error originates in the macro `inventory::submit` (in Nightly builds, run with -Z macro-backtrace for more info) |