about summary refs log tree commit diff
path: root/tests/ui/lint/issue-87274-paren-parent.rs
blob: 409824cc9406db636dc3ab26b77ece9c89525a43 (plain)
1
2
3
4
5
6
7
8
9
//@ check-pass
// Tests that we properly lint at 'paren' expressions

fn foo() -> Result<(), String>  {
    (try!(Ok::<u8, String>(1))); //~ WARN use of deprecated macro `try`
    Ok(())
}

fn main() {}