fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
389 B15 linesraw
1// run-rustfix
2// build-pass (FIXME(62277): could be check-pass?)
3
4#![warn(rust_2018_compatibility)]
5
6fn main() {
7    r#try();
8    //~^ WARNING `try` is a keyword in the 2018 edition
9    //~| WARNING it will become a hard error in the 2018 edition!
10}
11
12fn r#try() {
13    //~^ WARNING `try` is a keyword in the 2018 edition
14    //~| WARNING it will become a hard error in the 2018 edition!
15}