fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.7 KiB50 linesraw
1error: only lifetime parameters can be used in this context
2  --> $DIR/cfg-generic-params.rs:7:45
3   |
4LL | type FnBad = for<#[cfg(no)] 'a, #[cfg(yes)] T> fn();
5   |                                             ^
6
7error: only lifetime parameters can be used in this context
8  --> $DIR/cfg-generic-params.rs:11:51
9   |
10LL | type PolyBad = dyn for<#[cfg(no)] 'a, #[cfg(yes)] T> Copy;
11   |                                                   ^
12
13error: only lifetime parameters can be used in this context
14  --> $DIR/cfg-generic-params.rs:15:54
15   |
16LL | struct WhereBad where for<#[cfg(no)] 'a, #[cfg(yes)] T> u8: Copy;
17   |                                                      ^
18
19error: cannot find attribute `unknown` in this scope
20  --> $DIR/cfg-generic-params.rs:34:43
21   |
22LL | struct WhereYes where for<#[cfg_attr(yes, unknown)] 'a> u8: Copy;
23   |                                           ^^^^^^^
24
25error: cannot find attribute `unknown` in this scope
26  --> $DIR/cfg-generic-params.rs:30:40
27   |
28LL | type PolyYes = dyn for<#[cfg_attr(yes, unknown)] 'a> Copy;
29   |                                        ^^^^^^^
30
31error: cannot find attribute `unknown` in this scope
32  --> $DIR/cfg-generic-params.rs:26:34
33   |
34LL | type FnYes = for<#[cfg_attr(yes, unknown)] 'a> fn();
35   |                                  ^^^^^^^
36
37error: cannot find attribute `unknown` in this scope
38  --> $DIR/cfg-generic-params.rs:22:29
39   |
40LL | fn f_ty_yes<#[cfg_attr(yes, unknown)] T>() {}
41   |                             ^^^^^^^
42
43error: cannot find attribute `unknown` in this scope
44  --> $DIR/cfg-generic-params.rs:19:29
45   |
46LL | fn f_lt_yes<#[cfg_attr(yes, unknown)] 'a>() {}
47   |                             ^^^^^^^
48
49error: aborting due to 8 previous errors
50