about summary refs log tree commit diff
path: root/src/test/compile-fail/feature-gate-try-operator.rs
AgeCommit message (Collapse)AuthorLines
2016-10-12Stabilise `?`Nick Cameron-18/+0
cc [`?` tracking issue](https://github.com/rust-lang/rust/issues/31436)
2016-04-12Fix beta branchBrian Anderson-2/+0
This test tests a message that is only displayed on nightly.
2016-03-07implement the `?` operatorJorge Aparicio-0/+20
The `?` postfix operator is sugar equivalent to the try! macro, but is more amenable to chaining: `File::open("foo")?.metadata()?.is_dir()`. `?` is accepted on any *expression* that can return a `Result`, e.g. `x()?`, `y!()?`, `{z}?`, `(w)?`, etc. And binds more tightly than unary operators, e.g. `!x?` is parsed as `!(x?)`. cc #31436