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