2018-06-02 05:10:29 +08:00
|
|
|
error: #[cfg] cannot be applied on a generic parameter
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-51279.rs:1:14
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
|
LL | pub struct X<#[cfg(none)] 'a, #[cfg(none)] T>(&'a T);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[cfg] cannot be applied on a generic parameter
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-51279.rs:1:31
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
|
LL | pub struct X<#[cfg(none)] 'a, #[cfg(none)] T>(&'a T);
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[cfg] cannot be applied on a generic parameter
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-51279.rs:5:6
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
|
LL | impl<#[cfg(none)] 'a, #[cfg(none)] T> X<'a, T> {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[cfg] cannot be applied on a generic parameter
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-51279.rs:5:23
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
|
LL | impl<#[cfg(none)] 'a, #[cfg(none)] T> X<'a, T> {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[cfg] cannot be applied on a generic parameter
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-51279.rs:9:10
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
|
LL | pub fn f<#[cfg(none)] 'a, #[cfg(none)] T>(_: &'a T) {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[cfg] cannot be applied on a generic parameter
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-51279.rs:9:27
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
|
LL | pub fn f<#[cfg(none)] 'a, #[cfg(none)] T>(_: &'a T) {}
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[cfg_attr] cannot be applied on a generic parameter
|
2019-01-02 17:14:24 +03:00
|
|
|
--> $DIR/issue-51279.rs:18:6
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
2019-01-02 17:14:24 +03:00
|
|
|
LL | impl<#[cfg_attr(none, may_dangle)] T> Drop for M<T> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
error: #[cfg] cannot be applied on a generic parameter
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-51279.rs:23:23
|
2018-06-02 05:10:29 +08:00
|
|
|
|
|
|
|
|
LL | type Z<#[ignored] 'a, #[cfg(none)] T> = X<'a, T>;
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2019-04-10 16:40:12 -07:00
|
|
|
error[E0658]: The attribute `ignored` is currently unknown to the compiler and may have meaning added to it in the future
|
2018-12-27 03:07:00 +03:00
|
|
|
--> $DIR/issue-51279.rs:23:8
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
LL | type Z<#[ignored] 'a, #[cfg(none)] T> = X<'a, T>;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2019-04-11 11:42:06 -07:00
|
|
|
= note: for more information, see https://github.com/rust-lang/rust/issues/29642
|
2018-12-16 20:23:27 +03:00
|
|
|
= help: add #![feature(custom_attribute)] to the crate attributes to enable
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2018-06-02 05:10:29 +08:00
|
|
|
|
2018-12-16 20:23:27 +03:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|