Skip to content

Commit

Permalink
fixup ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhry committed Nov 20, 2024
1 parent 616be8b commit 5023602
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test_suite/tests/ui/fail_with_invalid_codec_attrs.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ error: Invalid attribute on field, only `#[codec(skip)]`, `#[codec(compact)]` an
14 | Thing(#[codec(index = 3)] u32),
| ^^^^^

error: expected literal
--> tests/ui/fail_with_invalid_codec_attrs.rs:19:21
error: Invalid attribute on variant, only `#[codec(skip)]` and `#[codec(index = $u8)]` are accepted.
--> tests/ui/fail_with_invalid_codec_attrs.rs:19:13
|
19 | #[codec(index = a)]
| ^
| ^^^^^

error: expected literal
--> tests/ui/fail_with_invalid_codec_attrs.rs:25:25
error: Invalid attribute on variant, only `#[codec(skip)]` and `#[codec(index = $u8)]` are accepted.
--> tests/ui/fail_with_invalid_codec_attrs.rs:25:7
|
25 | #[codec(encode_as = u8, compact)]
| ^^
| ^^^^^

0 comments on commit 5023602

Please sign in to comment.