Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
4486c24db3ca1c698b34ea08bee15194774b53df
/
.
/
tests
/
ui
/
deprecation
/
try-macro-suggestion.rs
blob: 1e477ab9c88f9977640cadbe0b7785497fa8e2cf [
file
] [
log
] [
blame
]
//@ compile-flags: --edition 2018
fn
foo
()
->
Result
<(),
()>
{
Ok
(
try
!());
//~ ERROR use of deprecated `try` macro
Ok
(
try
!(
Ok
(())))
//~ ERROR use of deprecated `try` macro
}
fn
main
()
{
let
_
=
foo
();
}