2019-09-15 04:55:18 -05:00
|
|
|
error: cannot find attribute `unknown` in this scope
|
2020-11-21 09:02:37 -06:00
|
|
|
--> $DIR/cfg-generic-params.rs:19:29
|
2019-06-05 09:59:37 -05:00
|
|
|
|
|
2020-11-21 09:02:37 -06:00
|
|
|
LL | fn f_lt_yes<#[cfg_attr(yes, unknown)] 'a>() {}
|
|
|
|
| ^^^^^^^
|
2019-06-05 09:59:37 -05:00
|
|
|
|
2019-09-15 04:55:18 -05:00
|
|
|
error: cannot find attribute `unknown` in this scope
|
2020-11-21 09:02:37 -06:00
|
|
|
--> $DIR/cfg-generic-params.rs:22:29
|
2019-06-05 09:59:37 -05:00
|
|
|
|
|
2020-11-21 09:02:37 -06:00
|
|
|
LL | fn f_ty_yes<#[cfg_attr(yes, unknown)] T>() {}
|
|
|
|
| ^^^^^^^
|
2019-06-05 09:59:37 -05:00
|
|
|
|
2019-09-15 04:55:18 -05:00
|
|
|
error: cannot find attribute `unknown` in this scope
|
2019-09-09 07:26:25 -05:00
|
|
|
--> $DIR/cfg-generic-params.rs:26:34
|
2019-06-05 09:59:37 -05:00
|
|
|
|
|
|
|
|
LL | type FnYes = for<#[cfg_attr(yes, unknown)] 'a> fn();
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2019-09-15 04:55:18 -05:00
|
|
|
error: cannot find attribute `unknown` in this scope
|
2020-11-21 09:02:37 -06:00
|
|
|
--> $DIR/cfg-generic-params.rs:30:40
|
2019-06-05 09:59:37 -05:00
|
|
|
|
|
2020-11-21 09:02:37 -06:00
|
|
|
LL | type PolyYes = dyn for<#[cfg_attr(yes, unknown)] 'a> Copy;
|
|
|
|
| ^^^^^^^
|
2019-06-05 09:59:37 -05:00
|
|
|
|
2019-09-15 04:55:18 -05:00
|
|
|
error: cannot find attribute `unknown` in this scope
|
2020-11-21 09:02:37 -06:00
|
|
|
--> $DIR/cfg-generic-params.rs:34:43
|
2019-06-05 09:59:37 -05:00
|
|
|
|
|
2020-11-21 09:02:37 -06:00
|
|
|
LL | struct WhereYes where for<#[cfg_attr(yes, unknown)] 'a> u8: Copy;
|
|
|
|
| ^^^^^^^
|
2019-06-05 09:59:37 -05:00
|
|
|
|
2023-02-03 19:59:17 -06:00
|
|
|
error[E0658]: only lifetime parameters can be used in this context
|
|
|
|
--> $DIR/cfg-generic-params.rs:7:45
|
|
|
|
|
|
|
|
|
LL | type FnBad = for<#[cfg(no)] 'a, #[cfg(yes)] T> fn();
|
|
|
|
| ^
|
|
|
|
|
|
2023-02-17 14:22:12 -06:00
|
|
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
2023-02-03 19:59:17 -06:00
|
|
|
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: only lifetime parameters can be used in this context
|
|
|
|
--> $DIR/cfg-generic-params.rs:11:51
|
|
|
|
|
|
|
|
|
LL | type PolyBad = dyn for<#[cfg(no)] 'a, #[cfg(yes)] T> Copy;
|
|
|
|
| ^
|
|
|
|
|
|
2023-02-17 14:22:12 -06:00
|
|
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
2023-02-03 19:59:17 -06:00
|
|
|
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error[E0658]: only lifetime parameters can be used in this context
|
|
|
|
--> $DIR/cfg-generic-params.rs:15:54
|
|
|
|
|
|
|
|
|
LL | struct WhereBad where for<#[cfg(no)] 'a, #[cfg(yes)] T> u8: Copy;
|
|
|
|
| ^
|
|
|
|
|
|
2023-02-17 14:22:12 -06:00
|
|
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
2023-02-03 19:59:17 -06:00
|
|
|
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
|
|
|
|
2019-06-05 09:59:37 -05:00
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
2023-02-03 19:59:17 -06:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|