11error: the `#[test]` attribute may only be used on a free function
2- --> $DIR/test-on-not-fn.rs:3 :1
2+ --> $DIR/test-on-not-fn.rs:4 :1
33 |
44LL | #[test]
55 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -13,7 +13,7 @@ LL + #[cfg(test)]
1313 |
1414
1515error: the `#[test]` attribute may only be used on a free function
16- --> $DIR/test-on-not-fn.rs:6 :1
16+ --> $DIR/test-on-not-fn.rs:7 :1
1717 |
1818LL | #[test]
1919 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -33,7 +33,7 @@ LL + #[cfg(test)]
3333 |
3434
3535error: the `#[test]` attribute may only be used on a free function
36- --> $DIR/test-on-not-fn.rs:20 :1
36+ --> $DIR/test-on-not-fn.rs:21 :1
3737 |
3838LL | #[test]
3939 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -47,7 +47,7 @@ LL + #[cfg(test)]
4747 |
4848
4949error: the `#[test]` attribute may only be used on a free function
50- --> $DIR/test-on-not-fn.rs:23 :1
50+ --> $DIR/test-on-not-fn.rs:24 :1
5151 |
5252LL | #[test]
5353 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -61,7 +61,7 @@ LL + #[cfg(test)]
6161 |
6262
6363error: the `#[test]` attribute may only be used on a free function
64- --> $DIR/test-on-not-fn.rs:26 :1
64+ --> $DIR/test-on-not-fn.rs:27 :1
6565 |
6666LL | #[test]
6767 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -75,7 +75,7 @@ LL + #[cfg(test)]
7575 |
7676
7777error: the `#[test]` attribute may only be used on a free function
78- --> $DIR/test-on-not-fn.rs:29 :1
78+ --> $DIR/test-on-not-fn.rs:30 :1
7979 |
8080LL | #[test]
8181 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -89,7 +89,7 @@ LL + #[cfg(test)]
8989 |
9090
9191error: the `#[test]` attribute may only be used on a free function
92- --> $DIR/test-on-not-fn.rs:32 :1
92+ --> $DIR/test-on-not-fn.rs:33 :1
9393 |
9494LL | #[test]
9595 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -103,7 +103,7 @@ LL + #[cfg(test)]
103103 |
104104
105105error: the `#[test]` attribute may only be used on a free function
106- --> $DIR/test-on-not-fn.rs:35 :1
106+ --> $DIR/test-on-not-fn.rs:36 :1
107107 |
108108LL | #[test]
109109 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -119,7 +119,7 @@ LL + #[cfg(test)]
119119 |
120120
121121error: the `#[test]` attribute may only be used on a free function
122- --> $DIR/test-on-not-fn.rs:40 :1
122+ --> $DIR/test-on-not-fn.rs:41 :1
123123 |
124124LL | #[test]
125125 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -133,7 +133,7 @@ LL + #[cfg(test)]
133133 |
134134
135135error: the `#[test]` attribute may only be used on a free function
136- --> $DIR/test-on-not-fn.rs:43 :1
136+ --> $DIR/test-on-not-fn.rs:44 :1
137137 |
138138LL | #[test]
139139 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -150,7 +150,7 @@ LL + #[cfg(test)]
150150 |
151151
152152error: the `#[test]` attribute may only be used on a free function
153- --> $DIR/test-on-not-fn.rs:50 :1
153+ --> $DIR/test-on-not-fn.rs:51 :1
154154 |
155155LL | #[test]
156156 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
@@ -168,7 +168,7 @@ LL + #[cfg(test)]
168168 |
169169
170170warning: the `#[test]` attribute may only be used on a free function
171- --> $DIR/test-on-not-fn.rs:61 :1
171+ --> $DIR/test-on-not-fn.rs:62 :1
172172 |
173173LL | #[test]
174174 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
0 commit comments