Skip to content

Commit

Permalink
Add test for 2021 prelude.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed May 25, 2021
1 parent 04a4a82 commit 4f93b06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/prelude2021.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// check-pass
// edition:2021
// compile-flags: -Zunstable-options

fn main() {
let _: u16 = 123i32.try_into().unwrap();
}

0 comments on commit 4f93b06

Please sign in to comment.