|
| 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[E0658]: The attribute `unknown` is currently unknown to the compiler and may have meaning added to it in the future |
| 20 | + --> $DIR/cfg-generic-params.rs:19:29 |
| 21 | + | |
| 22 | +LL | fn f_lt_yes<#[cfg_attr(yes, unknown)] 'a>() {} |
| 23 | + | ^^^^^^^ |
| 24 | + | |
| 25 | + = note: for more information, see https://github.com/rust-lang/rust/issues/29642 |
| 26 | + = help: add #![feature(custom_attribute)] to the crate attributes to enable |
| 27 | + |
| 28 | +error[E0658]: The attribute `unknown` is currently unknown to the compiler and may have meaning added to it in the future |
| 29 | + --> $DIR/cfg-generic-params.rs:21:29 |
| 30 | + | |
| 31 | +LL | fn f_ty_yes<#[cfg_attr(yes, unknown)] T>() {} |
| 32 | + | ^^^^^^^ |
| 33 | + | |
| 34 | + = note: for more information, see https://github.com/rust-lang/rust/issues/29642 |
| 35 | + = help: add #![feature(custom_attribute)] to the crate attributes to enable |
| 36 | + |
| 37 | +error[E0658]: The attribute `unknown` is currently unknown to the compiler and may have meaning added to it in the future |
| 38 | + --> $DIR/cfg-generic-params.rs:24:34 |
| 39 | + | |
| 40 | +LL | type FnYes = for<#[cfg_attr(yes, unknown)] 'a> fn(); |
| 41 | + | ^^^^^^^ |
| 42 | + | |
| 43 | + = note: for more information, see https://github.com/rust-lang/rust/issues/29642 |
| 44 | + = help: add #![feature(custom_attribute)] to the crate attributes to enable |
| 45 | + |
| 46 | +error[E0658]: The attribute `unknown` is currently unknown to the compiler and may have meaning added to it in the future |
| 47 | + --> $DIR/cfg-generic-params.rs:28:40 |
| 48 | + | |
| 49 | +LL | type PolyYes = dyn for<#[cfg_attr(yes, unknown)] 'a> Copy; |
| 50 | + | ^^^^^^^ |
| 51 | + | |
| 52 | + = note: for more information, see https://github.com/rust-lang/rust/issues/29642 |
| 53 | + = help: add #![feature(custom_attribute)] to the crate attributes to enable |
| 54 | + |
| 55 | +error[E0658]: The attribute `unknown` is currently unknown to the compiler and may have meaning added to it in the future |
| 56 | + --> $DIR/cfg-generic-params.rs:32:43 |
| 57 | + | |
| 58 | +LL | struct WhereYes where for<#[cfg_attr(yes, unknown)] 'a> u8: Copy; |
| 59 | + | ^^^^^^^ |
| 60 | + | |
| 61 | + = note: for more information, see https://github.com/rust-lang/rust/issues/29642 |
| 62 | + = help: add #![feature(custom_attribute)] to the crate attributes to enable |
| 63 | + |
| 64 | +error: aborting due to 8 previous errors |
| 65 | + |
| 66 | +For more information about this error, try `rustc --explain E0658`. |
0 commit comments