fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
706 B26 linesraw
1error: `derive` may only be applied to structs, enums and unions
2  --> $DIR/issue-49934-errors.rs:1:8
3   |
4LL | fn foo<#[derive(Debug)] T>() {
5   |        ^^^^^^^^^^^^^^^^
6
7error: expected an inert attribute, found a derive macro
8  --> $DIR/issue-49934-errors.rs:1:17
9   |
10LL | fn foo<#[derive(Debug)] T>() {
11   |                 ^^^^^
12
13error: `derive` may only be applied to structs, enums and unions
14  --> $DIR/issue-49934-errors.rs:5:9
15   |
16LL |         #[derive(Debug)]
17   |         ^^^^^^^^^^^^^^^^
18
19error: expected an inert attribute, found a derive macro
20  --> $DIR/issue-49934-errors.rs:5:18
21   |
22LL |         #[derive(Debug)]
23   |                  ^^^^^
24
25error: aborting due to 4 previous errors
26