From de59f886cb485c807170d1a49e37d4074f09ab0a Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Sat, 8 Nov 2025 21:32:08 +0000 Subject: [PATCH] Update nightly expectations As of https://github.com/rust-lang/rust/pull/148188 nightly now uses annotate-snippets which looks like it truncates snippets more eagerly. --- .../custom_error_type_parsing.stderr_nightly | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 num_enum/tests/try_build/compile_fail/custom_error_type_parsing.stderr_nightly diff --git a/num_enum/tests/try_build/compile_fail/custom_error_type_parsing.stderr_nightly b/num_enum/tests/try_build/compile_fail/custom_error_type_parsing.stderr_nightly new file mode 100644 index 0000000..02cd3aa --- /dev/null +++ b/num_enum/tests/try_build/compile_fail/custom_error_type_parsing.stderr_nightly @@ -0,0 +1,29 @@ +error: num_enum error_type attribute requires `constructor` value + --> tests/try_build/compile_fail/custom_error_type_parsing.rs:2:12 + | +2 | #[num_enum(error_type(name = CustomError))] + | ^^^^^^^^^^ + +error: num_enum error_type attribute requires `name` value + --> tests/try_build/compile_fail/custom_error_type_parsing.rs:11:12 + | +11 | #[num_enum(error_type(constructor = CustomError::new))] + | ^^^^^^^^^^ + +error: expected `name` or `constructor` + --> tests/try_build/compile_fail/custom_error_type_parsing.rs:20:75 + | +20 | #[num_enum(error_type(name = CustomError, constructor = CustomError::new, extra = something))] + | ^^^^^ + +error: num_enum attribute must have at most one error_type + --> tests/try_build/compile_fail/custom_error_type_parsing.rs:29:76 + | +29 | #[num_enum(error_type(name = CustomError, constructor = CustomError::new), error_type(name = CustomError, constructor = CustomError:... + | ^^^^^^^^^^ + +error: num_enum attribute must have at most one error_type + --> tests/try_build/compile_fail/custom_error_type_parsing.rs:39:12 + | +39 | #[num_enum(error_type(name = CustomError, constructor = CustomError::new))] + | ^^^^^^^^^^