Stuart Cook
bcd50fd45f
Rollup merge of #137831 - estebank:auto-trait-err, r=compiler-errors
...
Tweak auto trait errors
Make suggestions to remove params and super traits verbose and make spans more accurate.
```
error[E0567]: auto traits cannot have generic parameters
--> $DIR/auto-trait-validation.rs:6:19
|
LL | auto trait Generic<T> {}
| -------^^^
| |
| auto trait cannot have generic parameters
error[E0568]: auto traits cannot have super traits or lifetime bounds
--> $DIR/auto-trait-validation.rs:8:20
|
LL | auto trait Bound : Copy {}
| ----- ^^^^
| |
| auto traits cannot have super traits or lifetime bounds
```
```
error[E0380]: auto traits cannot have associated items
--> $DIR/issue-23080.rs:5:8
|
LL | unsafe auto trait Trait {
| ----- auto traits cannot have associated items
LL | fn method(&self) {
| ^^^^^^
```
2025-08-07 20:49:36 +10:00
..
2025-08-04 17:20:07 +00:00
2025-02-13 05:45:53 +00:00
2024-02-08 08:10:43 +00:00
2023-02-16 15:14:45 +11:00
2025-04-08 23:06:31 +03:00
2025-01-03 19:39:39 +00:00
2024-03-20 15:53:06 +00:00
2024-03-20 15:53:06 +00:00
2024-12-11 11:59:12 +00:00
2024-12-11 11:59:12 +00:00
2024-12-11 11:59:12 +00:00
2025-04-29 12:46:26 +02:00
2025-04-29 12:46:26 +02:00
2025-04-08 23:06:31 +03:00
2025-02-10 20:21:39 +00:00
2023-10-17 17:33:55 +00:00
2025-05-05 14:27:09 +00:00
2023-10-17 17:33:55 +00:00
2025-05-05 14:27:09 +00:00
2023-10-17 17:33:55 +00:00
2025-05-05 14:27:09 +00:00
2023-10-17 17:33:55 +00:00
2025-05-05 14:27:09 +00:00
2024-07-26 13:18:35 -04:00
2025-06-24 18:59:42 +00:00
2024-09-29 11:57:18 -04:00
2024-09-29 11:57:18 -04:00
2025-06-30 08:45:43 +00:00
2025-06-30 08:45:43 +00:00
2024-04-21 20:10:12 -04:00
2025-03-03 23:53:42 +00:00
2025-03-03 23:53:42 +00:00
2025-03-04 00:21:02 +08:00
2025-03-04 00:21:02 +08:00
2025-07-24 17:01:44 -04:00
2025-06-11 20:51:49 +05:00
2023-08-28 17:47:37 -03:00
2023-11-24 19:15:52 +01:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2024-03-03 16:30:48 -03:00
2025-05-24 23:31:07 +02:00
2024-04-21 20:10:12 -04:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2023-11-12 19:59:13 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2025-02-21 00:41:17 +00:00
2023-02-23 10:27:06 -07:00
2024-07-22 22:51:53 +00:00
2024-02-16 20:02:50 +00:00
2025-06-24 18:59:42 +00:00
2023-03-07 21:26:19 +01:00
2024-05-30 22:52:33 +02:00
2024-05-30 22:52:33 +02:00
2025-06-13 01:16:36 +02:00
2025-07-17 19:26:39 +08:00
2024-11-26 02:50:48 +08:00
2024-05-09 14:47:09 +10:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2023-01-23 10:07:10 +09:00
2025-02-10 20:21:39 +00:00
2023-04-26 21:48:21 +00:00
2025-05-24 23:31:07 +02:00
2024-02-16 20:02:50 +00:00
2025-02-14 00:44:10 -08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2023-11-24 19:15:52 +01:00
2025-04-30 10:44:24 +03:00
2025-04-30 10:44:24 +03:00
2023-07-10 20:09:26 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-09-13 14:10:56 +03:00
2024-09-13 14:10:56 +03:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-07 10:42:01 +08:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2025-06-28 16:24:17 +05:00
2025-06-28 16:24:17 +05:00
2024-02-16 20:02:50 +00:00
2025-06-04 18:18:06 +00:00
2025-06-04 18:18:06 +00:00
2024-08-26 13:02:21 -04:00
2024-08-26 13:02:21 -04:00
2025-03-11 12:05:02 +00:00
2024-09-12 14:48:01 -04:00
2024-09-12 14:48:01 -04:00
2024-05-13 23:38:31 -04:00
2024-05-13 23:38:31 -04:00
2024-04-01 21:41:45 -04:00
2024-09-16 10:55:07 -04:00
2025-05-24 23:31:07 +02:00
2024-04-21 20:10:12 -04:00
2024-04-10 18:51:09 +02:00
2025-06-22 10:58:25 +02:00
2024-05-23 19:42:10 -04:00
2024-05-23 19:42:10 -04:00
2023-07-27 16:50:28 +00:00
2023-11-24 19:15:52 +01:00
2025-08-04 16:43:53 -04:00
2025-08-04 16:43:53 -04:00
2025-05-24 23:31:07 +02:00
2025-05-24 23:31:07 +02:00
2025-05-31 19:49:19 +05:00
2025-05-31 19:49:19 +05:00
2025-07-17 19:26:39 +08:00
2025-07-17 19:26:39 +08:00