blob: e7f2a12bcd085d700bcb2a9bb365b81bfbedc650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// We should not suggest `self` in bare functions.
// And a note for RFC 1685 should not be shown.
// See #144968
//@ edition:2018
fn is_even(value) -> bool { //~ ERROR expected one of `:`, `@`, or `|`, found `)`
value % 2 == 0
}
struct S;
impl S {
fn is_even(value) -> bool { //~ ERROR expected one of `:`, `@`, or `|`, found `)`
value % 2 == 0
}
}
trait T {
fn is_even(value) -> bool { //~ ERROR expected one of `:`, `@`, or `|`, found `)`
value % 2 == 0
}
}
fn main() {}
|