]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-51279.stderr
89786f72e182e6193d39b62b7a2049620a4f8d34
[rust.git] / src / test / ui / issues / issue-51279.stderr
1 error: #[cfg] cannot be applied on a generic parameter
2   --> $DIR/issue-51279.rs:1:14
3    |
4 LL | pub struct X<#[cfg(none)] 'a, #[cfg(none)] T>(&'a T);
5    |              ^^^^^^^^^^^^
6
7 error: #[cfg] cannot be applied on a generic parameter
8   --> $DIR/issue-51279.rs:1:31
9    |
10 LL | pub struct X<#[cfg(none)] 'a, #[cfg(none)] T>(&'a T);
11    |                               ^^^^^^^^^^^^
12
13 error: #[cfg] cannot be applied on a generic parameter
14   --> $DIR/issue-51279.rs:5:6
15    |
16 LL | impl<#[cfg(none)] 'a, #[cfg(none)] T> X<'a, T> {}
17    |      ^^^^^^^^^^^^
18
19 error: #[cfg] cannot be applied on a generic parameter
20   --> $DIR/issue-51279.rs:5:23
21    |
22 LL | impl<#[cfg(none)] 'a, #[cfg(none)] T> X<'a, T> {}
23    |                       ^^^^^^^^^^^^
24
25 error: #[cfg] cannot be applied on a generic parameter
26   --> $DIR/issue-51279.rs:9:10
27    |
28 LL | pub fn f<#[cfg(none)] 'a, #[cfg(none)] T>(_: &'a T) {}
29    |          ^^^^^^^^^^^^
30
31 error: #[cfg] cannot be applied on a generic parameter
32   --> $DIR/issue-51279.rs:9:27
33    |
34 LL | pub fn f<#[cfg(none)] 'a, #[cfg(none)] T>(_: &'a T) {}
35    |                           ^^^^^^^^^^^^
36
37 error: #[cfg_attr] cannot be applied on a generic parameter
38   --> $DIR/issue-51279.rs:18:13
39    |
40 LL | unsafe impl<#[cfg_attr(none, may_dangle)] T> Drop for M<T> {
41    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43 error: #[cfg] cannot be applied on a generic parameter
44   --> $DIR/issue-51279.rs:23:23
45    |
46 LL | type Z<#[ignored] 'a, #[cfg(none)] T> = X<'a, T>;
47    |                       ^^^^^^^^^^^^
48
49 error: aborting due to 8 previous errors
50