You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+
// option. This file may not be copied, modified, or distributed
9
+
// except according to those terms.
10
+
11
+
pubstructX<#[cfg(none)]'a,#[cfg(none)]T>(&'aT);
12
+
//~^ ERROR #[cfg] cannot be applied on a generic parameter
13
+
//~^^ ERROR #[cfg] cannot be applied on a generic parameter
14
+
15
+
impl<#[cfg(none)]'a,#[cfg(none)]T>X<'a,T>{}
16
+
//~^ ERROR #[cfg] cannot be applied on a generic parameter
17
+
//~^^ ERROR #[cfg] cannot be applied on a generic parameter
18
+
19
+
pubfnf<#[cfg(none)]'a,#[cfg(none)]T>(_:&'aT){}
20
+
//~^ ERROR #[cfg] cannot be applied on a generic parameter
21
+
//~^^ ERROR #[cfg] cannot be applied on a generic parameter
22
+
23
+
#[cfg(none)]
24
+
pubstructY<#[cfg(none)]T>(T);// shouldn't care when the entire item is stripped out
0 commit comments