-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
A-uiArea: changes related specifically to the ui (such as how we report errors to the user)Area: changes related specifically to the ui (such as how we report errors to the user)C-enhancementCategory: enhancementsCategory: enhancements
Description
The following code will obvisouly fail, since our function has two inputs, but in our attribute, we only provide one.
#[parameterized(input = {
&["03579", "0", "1", "1"]
})]
fn should_fail(input: &[&str], expected: (u32, u32, u32, u32)) {
let some: (u32, u32, u32, u32) = ParseInputsFromIter::parse(input).unwrap();
assert_eq!(some, expected);
}
it does fail (which is good), but the error states "this should never happen", while it can and isn't an unreachable error case.
#[parameterized(input = {
&["03579", "0", "1", "1"]
})]
fn should_fail(input: &[&str], expected: (u32, u32, u32, u32)) {
let some: (u32, u32, u32, u32) = ParseInputsFromIter::parse(input).unwrap();
assert_eq!(some, expected);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-uiArea: changes related specifically to the ui (such as how we report errors to the user)Area: changes related specifically to the ui (such as how we report errors to the user)C-enhancementCategory: enhancementsCategory: enhancements