|
1 | 1 | error[E0658]: use of unstable library feature `field_projections` |
2 | 2 | --> $DIR/feature-gate-field-projections.rs:3:5 |
3 | 3 | | |
4 | | -LL | use std::field; |
5 | | - | ^^^^^^^^^^ |
| 4 | +LL | use std::field::Field; |
| 5 | + | ^^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: see issue #145383 <https://github.com/rust-lang/rust/issues/145383> for more information |
8 | 8 | = help: add `#![feature(field_projections)]` to the crate attributes to enable |
9 | 9 | = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
10 | 10 |
|
11 | | -error: aborting due to 1 previous error |
| 11 | +error[E0658]: use of unstable library feature `field_projections` |
| 12 | + --> $DIR/feature-gate-field-projections.rs:6:19 |
| 13 | + | |
| 14 | +LL | fn project_ref<F: Field>( |
| 15 | + | ^^^^^ |
| 16 | + | |
| 17 | + = note: see issue #145383 <https://github.com/rust-lang/rust/issues/145383> for more information |
| 18 | + = help: add `#![feature(field_projections)]` to the crate attributes to enable |
| 19 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 20 | + |
| 21 | +error[E0658]: use of unstable library feature `field_projections` |
| 22 | + --> $DIR/feature-gate-field-projections.rs:12:5 |
| 23 | + | |
| 24 | +LL | F::Type: Sized, |
| 25 | + | ^^^^^^^ |
| 26 | + | |
| 27 | + = note: see issue #145383 <https://github.com/rust-lang/rust/issues/145383> for more information |
| 28 | + = help: add `#![feature(field_projections)]` to the crate attributes to enable |
| 29 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 30 | + |
| 31 | +error[E0658]: use of unstable library feature `field_projections` |
| 32 | + --> $DIR/feature-gate-field-projections.rs:8:9 |
| 33 | + | |
| 34 | +LL | r: &F::Base, |
| 35 | + | ^^^^^^^ |
| 36 | + | |
| 37 | + = note: see issue #145383 <https://github.com/rust-lang/rust/issues/145383> for more information |
| 38 | + = help: add `#![feature(field_projections)]` to the crate attributes to enable |
| 39 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 40 | + |
| 41 | +error[E0658]: use of unstable library feature `field_projections` |
| 42 | + --> $DIR/feature-gate-field-projections.rs:9:7 |
| 43 | + | |
| 44 | +LL | ) -> &F::Type |
| 45 | + | ^^^^^^^ |
| 46 | + | |
| 47 | + = note: see issue #145383 <https://github.com/rust-lang/rust/issues/145383> for more information |
| 48 | + = help: add `#![feature(field_projections)]` to the crate attributes to enable |
| 49 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 50 | + |
| 51 | +error[E0658]: use of unstable library feature `field_projections` |
| 52 | + --> $DIR/feature-gate-field-projections.rs:14:42 |
| 53 | + | |
| 54 | +LL | unsafe { &*ptr::from_ref(r).byte_add(F::OFFSET).cast() } |
| 55 | + | ^^^^^^^^^ |
| 56 | + | |
| 57 | + = note: see issue #145383 <https://github.com/rust-lang/rust/issues/145383> for more information |
| 58 | + = help: add `#![feature(field_projections)]` to the crate attributes to enable |
| 59 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 60 | + |
| 61 | +error: aborting due to 6 previous errors |
12 | 62 |
|
13 | 63 | For more information about this error, try `rustc --explain E0658`. |
0 commit comments