Add test for 2021 prelude.
This commit is contained in:
parent
04a4a8225b
commit
4f93b06089
7
src/test/ui/prelude2021.rs
Normal file
7
src/test/ui/prelude2021.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// check-pass
|
||||
// edition:2021
|
||||
// compile-flags: -Zunstable-options
|
||||
|
||||
fn main() {
|
||||
let _: u16 = 123i32.try_into().unwrap();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user