]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-macro-suggestion.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / try-macro-suggestion.rs
1 // compile-flags: --edition 2018
2 fn foo() -> Result<(), ()> {
3     Ok(try!()); //~ ERROR use of deprecated `try` macro
4     Ok(try!(Ok(()))) //~ ERROR use of deprecated `try` macro
5 }
6
7 fn main() {
8     let _ = foo();
9 }