@@ -2,7 +2,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
2
2
--> $DIR/test-on-not-fn.rs:3:1
3
3
|
4
4
LL | #[test]
5
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
5
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
6
6
LL | mod test {}
7
7
| ----------- expected a non-associated function, found a module
8
8
|
@@ -15,7 +15,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
15
15
--> $DIR/test-on-not-fn.rs:6:1
16
16
|
17
17
LL | #[test]
18
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
18
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
19
19
LL | / mod loooooooooooooong_teeeeeeeeeest {
20
20
LL | | /*
21
21
LL | | this is a comment
@@ -34,7 +34,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
34
34
--> $DIR/test-on-not-fn.rs:20:1
35
35
|
36
36
LL | #[test]
37
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
37
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
38
38
LL | extern "C" {}
39
39
| ------------- expected a non-associated function, found an extern block
40
40
|
@@ -47,7 +47,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
47
47
--> $DIR/test-on-not-fn.rs:23:1
48
48
|
49
49
LL | #[test]
50
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
50
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
51
51
LL | trait Foo {}
52
52
| ------------ expected a non-associated function, found a trait
53
53
|
@@ -60,7 +60,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
60
60
--> $DIR/test-on-not-fn.rs:26:1
61
61
|
62
62
LL | #[test]
63
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
63
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
64
64
LL | impl Foo for i32 {}
65
65
| ------------------- expected a non-associated function, found an implementation
66
66
|
@@ -73,7 +73,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
73
73
--> $DIR/test-on-not-fn.rs:29:1
74
74
|
75
75
LL | #[test]
76
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
76
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
77
77
LL | const FOO: i32 = -1_i32;
78
78
| ------------------------ expected a non-associated function, found a constant item
79
79
|
@@ -86,7 +86,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
86
86
--> $DIR/test-on-not-fn.rs:32:1
87
87
|
88
88
LL | #[test]
89
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
89
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
90
90
LL | static BAR: u64 = 10_000_u64;
91
91
| ----------------------------- expected a non-associated function, found a static item
92
92
|
@@ -99,7 +99,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
99
99
--> $DIR/test-on-not-fn.rs:35:1
100
100
|
101
101
LL | #[test]
102
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
102
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
103
103
LL | / enum MyUnit {
104
104
LL | | Unit,
105
105
LL | | }
@@ -114,7 +114,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
114
114
--> $DIR/test-on-not-fn.rs:40:1
115
115
|
116
116
LL | #[test]
117
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
117
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
118
118
LL | struct NewI32(i32);
119
119
| ------------------- expected a non-associated function, found a struct
120
120
|
@@ -127,7 +127,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
127
127
--> $DIR/test-on-not-fn.rs:43:1
128
128
|
129
129
LL | #[test]
130
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
130
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
131
131
LL | / union Spooky {
132
132
LL | | x: i32,
133
133
LL | | y: u32,
@@ -143,7 +143,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
143
143
--> $DIR/test-on-not-fn.rs:50:1
144
144
|
145
145
LL | #[test]
146
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
146
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
147
147
LL | #[derive(Copy, Clone, Debug)]
148
148
LL | / struct MoreAttrs {
149
149
LL | | a: i32,
@@ -160,7 +160,7 @@ warning: the `#[test]` attribute may only be used on a non-associated function
160
160
--> $DIR/test-on-not-fn.rs:61:1
161
161
|
162
162
LL | #[test]
163
- | ^^^^^^^ the `#[test]` macro causes a a function to be run on a test and has no effect on non-functions
163
+ | ^^^^^^^ the `#[test]` macro causes a function to be run on a test and has no effect on non-functions
164
164
LL | foo!();
165
165
| ------- expected a non-associated function, found an item macro invocation
166
166
|
0 commit comments