We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78dea4e commit 0b1edb7Copy full SHA for 0b1edb7
src/test/compile-fail/missing-do.rs
@@ -3,7 +3,7 @@
3
fn foo(f: fn()) { f() }
4
5
fn main() {
6
- "" || 42; //! ERROR binary operation || cannot be applied to type `str`
7
- foo || {}; //! ERROR binary operation || cannot be applied to type `extern fn(fn())`
8
- //!^ NOTE did you forget the 'do' keyword for the call?
+ "" || 42; //~ ERROR binary operation || cannot be applied to type `str`
+ foo || {}; //~ ERROR binary operation || cannot be applied to type `extern fn(fn())`
+ //~^ NOTE did you forget the 'do' keyword for the call?
9
}
0 commit comments