@@ -2,7 +2,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
22 --> $DIR/test-on-not-fn.rs:3:1
33 |
44LL | #[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
66LL | mod test {}
77 | ----------- expected a non-associated function, found a module
88 |
@@ -15,7 +15,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
1515 --> $DIR/test-on-not-fn.rs:6:1
1616 |
1717LL | #[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
1919LL | / mod loooooooooooooong_teeeeeeeeeest {
2020LL | | /*
2121LL | | this is a comment
@@ -34,7 +34,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
3434 --> $DIR/test-on-not-fn.rs:20:1
3535 |
3636LL | #[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
3838LL | extern "C" {}
3939 | ------------- expected a non-associated function, found an extern block
4040 |
@@ -47,7 +47,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
4747 --> $DIR/test-on-not-fn.rs:23:1
4848 |
4949LL | #[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
5151LL | trait Foo {}
5252 | ------------ expected a non-associated function, found a trait
5353 |
@@ -60,7 +60,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
6060 --> $DIR/test-on-not-fn.rs:26:1
6161 |
6262LL | #[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
6464LL | impl Foo for i32 {}
6565 | ------------------- expected a non-associated function, found an implementation
6666 |
@@ -73,7 +73,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
7373 --> $DIR/test-on-not-fn.rs:29:1
7474 |
7575LL | #[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
7777LL | const FOO: i32 = -1_i32;
7878 | ------------------------ expected a non-associated function, found a constant item
7979 |
@@ -86,7 +86,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
8686 --> $DIR/test-on-not-fn.rs:32:1
8787 |
8888LL | #[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
9090LL | static BAR: u64 = 10_000_u64;
9191 | ----------------------------- expected a non-associated function, found a static item
9292 |
@@ -99,7 +99,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
9999 --> $DIR/test-on-not-fn.rs:35:1
100100 |
101101LL | #[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
103103LL | / enum MyUnit {
104104LL | | Unit,
105105LL | | }
@@ -114,7 +114,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
114114 --> $DIR/test-on-not-fn.rs:40:1
115115 |
116116LL | #[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
118118LL | struct NewI32(i32);
119119 | ------------------- expected a non-associated function, found a struct
120120 |
@@ -127,7 +127,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
127127 --> $DIR/test-on-not-fn.rs:43:1
128128 |
129129LL | #[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
131131LL | / union Spooky {
132132LL | | x: i32,
133133LL | | y: u32,
@@ -143,7 +143,7 @@ error: the `#[test]` attribute may only be used on a non-associated function
143143 --> $DIR/test-on-not-fn.rs:50:1
144144 |
145145LL | #[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
147147LL | #[derive(Copy, Clone, Debug)]
148148LL | / struct MoreAttrs {
149149LL | | a: i32,
@@ -160,7 +160,7 @@ warning: the `#[test]` attribute may only be used on a non-associated function
160160 --> $DIR/test-on-not-fn.rs:61:1
161161 |
162162LL | #[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
164164LL | foo!();
165165 | ------- expected a non-associated function, found an item macro invocation
166166 |
0 commit comments