-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
622b67f
commit 0dab301
Showing
10 changed files
with
163 additions
and
66 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
20 changes: 5 additions & 15 deletions
20
confik-macros/tests/trybuild/fail-field-from-unknown-type.stderr
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,26 +1,16 @@ | ||
error[E0412]: cannot find type `A` in this scope | ||
--> tests/trybuild/fail-field-from-unknown-type.rs:6:21 | ||
| | ||
5 | struct Config { | ||
| - help: you might be missing a type parameter: `<A>` | ||
6 | #[confik(from = A)] | ||
| ^ not found in this scope | ||
| | ||
help: you might be missing a type parameter | ||
| | ||
5 | struct Config<A> { | ||
| +++ | ||
|
||
error[E0412]: cannot find type `A` in this scope | ||
--> tests/trybuild/fail-field-from-unknown-type.rs:6:21 | ||
| | ||
6 | #[confik(from = A)] | ||
| ^ not found in this scope | ||
|
||
error[E0283]: type annotations needed | ||
--> tests/trybuild/fail-field-from-unknown-type.rs:6:21 | ||
| | ||
5 | struct Config { | ||
| ------ in this derive macro expansion | ||
6 | #[confik(from = A)] | ||
| _____________________^ | ||
7 | | param: String, | ||
| |_________^ cannot infer type | ||
| | ||
= note: cannot satisfy `_: Default` | ||
= note: this error originates in the derive macro `::std::default::Default` (in Nightly builds, run with -Z macro-backtrace for more info) |
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
Oops, something went wrong.