fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.3 KiB60 linesraw
1error: cannot find attribute `unknown` in this scope
2  --> $DIR/cfg-generic-params.rs:19:29
3   |
4LL | fn f_lt_yes<#[cfg_attr(yes, unknown)] 'a>() {}
5   |                             ^^^^^^^
6
7error: cannot find attribute `unknown` in this scope
8  --> $DIR/cfg-generic-params.rs:22:29
9   |
10LL | fn f_ty_yes<#[cfg_attr(yes, unknown)] T>() {}
11   |                             ^^^^^^^
12
13error: cannot find attribute `unknown` in this scope
14  --> $DIR/cfg-generic-params.rs:26:34
15   |
16LL | type FnYes = for<#[cfg_attr(yes, unknown)] 'a> fn();
17   |                                  ^^^^^^^
18
19error: cannot find attribute `unknown` in this scope
20  --> $DIR/cfg-generic-params.rs:30:40
21   |
22LL | type PolyYes = dyn for<#[cfg_attr(yes, unknown)] 'a> Copy;
23   |                                        ^^^^^^^
24
25error: cannot find attribute `unknown` in this scope
26  --> $DIR/cfg-generic-params.rs:34:43
27   |
28LL | struct WhereYes where for<#[cfg_attr(yes, unknown)] 'a> u8: Copy;
29   |                                           ^^^^^^^
30
31error[E0658]: only lifetime parameters can be used in this context
32  --> $DIR/cfg-generic-params.rs:7:45
33   |
34LL | type FnBad = for<#[cfg(no)] 'a, #[cfg(yes)] T> fn();
35   |                                             ^
36   |
37   = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
38   = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
39
40error[E0658]: only lifetime parameters can be used in this context
41  --> $DIR/cfg-generic-params.rs:11:51
42   |
43LL | type PolyBad = dyn for<#[cfg(no)] 'a, #[cfg(yes)] T> Copy;
44   |                                                   ^
45   |
46   = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
47   = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
48
49error[E0658]: only lifetime parameters can be used in this context
50  --> $DIR/cfg-generic-params.rs:15:54
51   |
52LL | struct WhereBad where for<#[cfg(no)] 'a, #[cfg(yes)] T> u8: Copy;
53   |                                                      ^
54   |
55   = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
56   = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
57
58error: aborting due to 8 previous errors
59
60For more information about this error, try `rustc --explain E0658`.