//~^ ERROR user-defined types or type parameters cannot shadow the primitive types
use super::bool_ as bool;
//~^ ERROR user-defined types or type parameters cannot shadow the primitive types
+ use super::{bool_ as str};
+ //~^ ERROR user-defined types or type parameters cannot shadow the primitive types
use super::char_ as char;
}
}
fn main() {
let bool = true;
match bool {
- str @ true => if str { i32 as i64 } else { 0 },
+ str @ true => if str { i32 as i64 } else { i64 },
false => i64,
- }
+ };
}