Skip to content

Commit 4f93b06

Browse files
committed
Add test for 2021 prelude.
1 parent 04a4a82 commit 4f93b06

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/ui/prelude2021.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// check-pass
2+
// edition:2021
3+
// compile-flags: -Zunstable-options
4+
5+
fn main() {
6+
let _: u16 = 123i32.try_into().unwrap();
7+
}

0 commit comments

Comments
 (0)