]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
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 | ||
e1599b0c | 19 | error: cannot find attribute `unknown` in this scope |
fc512014 | 20 | --> $DIR/cfg-generic-params.rs:19:29 |
dc9dc135 | 21 | | |
fc512014 XL |
22 | LL | fn f_lt_yes<#[cfg_attr(yes, unknown)] 'a>() {} |
23 | | ^^^^^^^ | |
dc9dc135 | 24 | |
e1599b0c | 25 | error: cannot find attribute `unknown` in this scope |
fc512014 | 26 | --> $DIR/cfg-generic-params.rs:22:29 |
dc9dc135 | 27 | | |
fc512014 XL |
28 | LL | fn f_ty_yes<#[cfg_attr(yes, unknown)] T>() {} |
29 | | ^^^^^^^ | |
dc9dc135 | 30 | |
e1599b0c XL |
31 | error: cannot find attribute `unknown` in this scope |
32 | --> $DIR/cfg-generic-params.rs:26:34 | |
dc9dc135 XL |
33 | | |
34 | LL | type FnYes = for<#[cfg_attr(yes, unknown)] 'a> fn(); | |
35 | | ^^^^^^^ | |
dc9dc135 | 36 | |
e1599b0c | 37 | error: cannot find attribute `unknown` in this scope |
fc512014 | 38 | --> $DIR/cfg-generic-params.rs:30:40 |
dc9dc135 | 39 | | |
fc512014 XL |
40 | LL | type PolyYes = dyn for<#[cfg_attr(yes, unknown)] 'a> Copy; |
41 | | ^^^^^^^ | |
dc9dc135 | 42 | |
e1599b0c | 43 | error: cannot find attribute `unknown` in this scope |
fc512014 | 44 | --> $DIR/cfg-generic-params.rs:34:43 |
dc9dc135 | 45 | | |
fc512014 XL |
46 | LL | struct WhereYes where for<#[cfg_attr(yes, unknown)] 'a> u8: Copy; |
47 | | ^^^^^^^ | |
dc9dc135 XL |
48 | |
49 | error: aborting due to 8 previous errors | |
50 |