@@ -2,21 +2,21 @@ error: malformed `rustc_must_implement_one_of` attribute input
2
2
--> $DIR/rustc_must_implement_one_of_misuse.rs:20:1
3
3
|
4
4
LL | #[rustc_must_implement_one_of]
5
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_must_implement_one_of(method1, method2 , ...)]`
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_must_implement_one_of(function1, function2 , ...)]`
6
6
7
- error: Method not found in this trait
7
+ error: Function not found in this trait
8
8
--> $DIR/rustc_must_implement_one_of_misuse.rs:3:31
9
9
|
10
10
LL | #[rustc_must_implement_one_of(a, b)]
11
11
| ^
12
12
13
- error: Method not found in this trait
13
+ error: Function not found in this trait
14
14
--> $DIR/rustc_must_implement_one_of_misuse.rs:3:34
15
15
|
16
16
LL | #[rustc_must_implement_one_of(a, b)]
17
17
| ^
18
18
19
- error: Method not found in this trait
19
+ error: Function not found in this trait
20
20
--> $DIR/rustc_must_implement_one_of_misuse.rs:8:34
21
21
|
22
22
LL | #[rustc_must_implement_one_of(a, b)]
@@ -28,7 +28,7 @@ error: the `#[rustc_must_implement_one_of]` attribute must be used with at least
28
28
LL | #[rustc_must_implement_one_of(a)]
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
31
- error: Not a method
31
+ error: Not a function
32
32
--> $DIR/rustc_must_implement_one_of_misuse.rs:26:5
33
33
|
34
34
LL | const A: u8 = 1;
@@ -39,9 +39,9 @@ note: required by this annotation
39
39
|
40
40
LL | #[rustc_must_implement_one_of(A, B)]
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
- = note: All `#[rustc_must_implement_one_of]` arguments must be method identifiers
42
+ = note: All `#[rustc_must_implement_one_of]` arguments must be associated function names
43
43
44
- error: Not a method
44
+ error: Not a function
45
45
--> $DIR/rustc_must_implement_one_of_misuse.rs:28:5
46
46
|
47
47
LL | type B;
@@ -52,9 +52,9 @@ note: required by this annotation
52
52
|
53
53
LL | #[rustc_must_implement_one_of(A, B)]
54
54
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55
- = note: All `#[rustc_must_implement_one_of]` arguments must be method identifiers
55
+ = note: All `#[rustc_must_implement_one_of]` arguments must be associated function names
56
56
57
- error: This method doesn't have a default implementation
57
+ error: This function doesn't have a default implementation
58
58
--> $DIR/rustc_must_implement_one_of_misuse.rs:33:5
59
59
|
60
60
LL | fn a();
@@ -66,7 +66,7 @@ note: required by this annotation
66
66
LL | #[rustc_must_implement_one_of(a, b)]
67
67
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
68
69
- error: This method doesn't have a default implementation
69
+ error: This function doesn't have a default implementation
70
70
--> $DIR/rustc_must_implement_one_of_misuse.rs:35:5
71
71
|
72
72
LL | fn b();
0 commit comments