Skip to content

Commit de59f88

Browse files
committed
Update nightly expectations
As of rust-lang/rust#148188 nightly now uses annotate-snippets which looks like it truncates snippets more eagerly.
1 parent 984e150 commit de59f88

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
error: num_enum error_type attribute requires `constructor` value
2+
--> tests/try_build/compile_fail/custom_error_type_parsing.rs:2:12
3+
|
4+
2 | #[num_enum(error_type(name = CustomError))]
5+
| ^^^^^^^^^^
6+
7+
error: num_enum error_type attribute requires `name` value
8+
--> tests/try_build/compile_fail/custom_error_type_parsing.rs:11:12
9+
|
10+
11 | #[num_enum(error_type(constructor = CustomError::new))]
11+
| ^^^^^^^^^^
12+
13+
error: expected `name` or `constructor`
14+
--> tests/try_build/compile_fail/custom_error_type_parsing.rs:20:75
15+
|
16+
20 | #[num_enum(error_type(name = CustomError, constructor = CustomError::new, extra = something))]
17+
| ^^^^^
18+
19+
error: num_enum attribute must have at most one error_type
20+
--> tests/try_build/compile_fail/custom_error_type_parsing.rs:29:76
21+
|
22+
29 | #[num_enum(error_type(name = CustomError, constructor = CustomError::new), error_type(name = CustomError, constructor = CustomError:...
23+
| ^^^^^^^^^^
24+
25+
error: num_enum attribute must have at most one error_type
26+
--> tests/try_build/compile_fail/custom_error_type_parsing.rs:39:12
27+
|
28+
39 | #[num_enum(error_type(name = CustomError, constructor = CustomError::new))]
29+
| ^^^^^^^^^^

0 commit comments

Comments
 (0)