3 #![allow(non_upper_case_globals)]
9 // Err(err) => return Err(From::from(err)),
12 // This test verifies that the expansion is hygienic, i.e., it's not affected by other `val` and
13 // `err` bindings that may be in scope.
15 use std::num::ParseIntError;
18 assert_eq!(parse(), Ok(1));
21 fn parse() -> Result<i32, ParseIntError> {
22 const val: char = 'a';
23 const err: char = 'b';
25 Ok("1".parse::<i32>()?)