Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests for newer version of trybuild #319

Merged
merged 1 commit into from Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions compatibility-tests/compile-fail/tests/ui/error-reporting.stderr
@@ -1,23 +1,23 @@
error: Can only derive `Snafu` for an enum or a newtype
--> $DIR/error-reporting.rs:5:5
--> tests/ui/error-reporting.rs:5:5
|
5 | union AUnion {
| ^^^^^

error: Can only derive `Snafu` for enums with struct-like and unit enum variants
--> $DIR/error-reporting.rs:11:14
--> tests/ui/error-reporting.rs:11:14
|
11 | Alpha(i32),
| ^^^^^

error: unexpected end of input, expected parentheses
--> $DIR/error-reporting.rs:30:16
--> tests/ui/error-reporting.rs:30:24
|
30 | #[snafu(display)]
| ^^^^^^^^^
| ^

error: format argument must be a string literal
--> $DIR/error-reporting.rs:36:25
--> tests/ui/error-reporting.rs:36:25
|
36 | #[snafu(display(foo()))]
| ^^^^^
Expand All @@ -28,7 +28,7 @@ help: you might be missing a string literal to format with
| +++++

error: format argument must be a string literal
--> $DIR/error-reporting.rs:39:25
--> tests/ui/error-reporting.rs:39:25
|
39 | #[snafu(display(42))]
| ^^
Expand All @@ -39,19 +39,19 @@ help: you might be missing a string literal to format with
| +++++

error: Can only derive `Snafu` for tuple structs with exactly one field
--> $DIR/error-reporting.rs:56:5
--> tests/ui/error-reporting.rs:56:5
|
56 | struct ShortTupleStruct();
| ^^^^^^

error: Can only derive `Snafu` for tuple structs with exactly one field
--> $DIR/error-reporting.rs:59:5
--> tests/ui/error-reporting.rs:59:5
|
59 | struct LongTupleStruct(i32, i32);
| ^^^^^^

error: cannot find attribute `serde` in this scope
--> $DIR/error-reporting.rs:20:11
--> tests/ui/error-reporting.rs:20:11
|
20 | #[serde]
| ^^^^^
16 changes: 8 additions & 8 deletions compatibility-tests/compile-fail/tests/ui/stringly-typed.stderr
@@ -1,41 +1,41 @@
error: Cannot be both a `context` and `whatever` error
--> $DIR/stringly-typed.rs:5:13
--> tests/ui/stringly-typed.rs:5:13
|
5 | #[snafu(context, whatever)]
| ^^^^^^^

error: Cannot be both a `context` and `whatever` error
--> $DIR/stringly-typed.rs:5:22
--> tests/ui/stringly-typed.rs:5:22
|
5 | #[snafu(context, whatever)]
| ^^^^^^^^

error: expected `,`
--> $DIR/stringly-typed.rs:13:21
--> tests/ui/stringly-typed.rs:13:21
|
13 | #[snafu(whatever(true))]
| ^^^^^^
| ^

error: Whatever selectors must have a message field
--> $DIR/stringly-typed.rs:21:5
--> tests/ui/stringly-typed.rs:21:5
|
21 | #[snafu(whatever)]
| ^

error: Multiple `message` attributes are not supported on a named struct
--> $DIR/stringly-typed.rs:32:9
--> tests/ui/stringly-typed.rs:32:9
|
32 | message: String,
| ^^^^^^^^^^^^^^^

error: Whatever selectors must not have context fields
--> $DIR/stringly-typed.rs:43:9
--> tests/ui/stringly-typed.rs:43:9
|
43 | user_id: i32,
| ^^^^^^^^^^^^

error[E0124]: field `message` is already declared
--> $DIR/stringly-typed.rs:32:9
--> tests/ui/stringly-typed.rs:32:9
|
31 | message: String,
| --------------- `message` first declared here
Expand Down