-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
loikki
committed
Aug 2, 2024
1 parent
9df9014
commit 69dac9a
Showing
3 changed files
with
57 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../ui-fail/from_param.rs |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
error: named structs are not supported | ||
--> tests/ui-fail-stable/from_param.rs:4:1 | ||
| | ||
4 | struct Foo1 { | ||
| ^^^^^^ | ||
|
||
error: [note] error occurred while deriving `FromParam` | ||
--> tests/ui-fail-stable/from_param.rs:3:10 | ||
| | ||
3 | #[derive(FromParam)] | ||
| ^^^^^^^^^ | ||
| | ||
= note: this error originates in the derive macro `FromParam` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: named structs are not supported | ||
--> tests/ui-fail-stable/from_param.rs:9:1 | ||
| | ||
9 | struct Foo2 {} | ||
| ^^^^^^ | ||
|
||
error: [note] error occurred while deriving `FromParam` | ||
--> tests/ui-fail-stable/from_param.rs:8:10 | ||
| | ||
8 | #[derive(FromParam)] | ||
| ^^^^^^^^^ | ||
| | ||
= note: this error originates in the derive macro `FromParam` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: Only empty enums are accepted | ||
--> tests/ui-fail-stable/from_param.rs:13:6 | ||
| | ||
13 | A(String), | ||
| ^^^^^^^^ | ||
|
||
error: [note] error occurred while deriving `FromParam` | ||
--> tests/ui-fail-stable/from_param.rs:11:10 | ||
| | ||
11 | #[derive(FromParam)] | ||
| ^^^^^^^^^ | ||
| | ||
= note: this error originates in the derive macro `FromParam` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: tuple structs are not supported | ||
--> tests/ui-fail-stable/from_param.rs:21:1 | ||
| | ||
21 | struct Foo5(usize); | ||
| ^^^^^^ | ||
|
||
error: [note] error occurred while deriving `FromParam` | ||
--> tests/ui-fail-stable/from_param.rs:20:10 | ||
| | ||
20 | #[derive(FromParam)] | ||
| ^^^^^^^^^ | ||
| | ||
= note: this error originates in the derive macro `FromParam` (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