-
Notifications
You must be signed in to change notification settings - Fork 142
Closed as not planned
Closed as not planned
Copy link
Labels
compatibility-nonbreakingChanges that are (likely to be) non-breakingChanges that are (likely to be) non-breaking
Description
In our UI tests for the following impl:
zerocopy/zerocopy-derive/tests/ui-nightly/late_compile_pass.rs
Lines 23 to 26 in 9cf8087
| #[derive(FromZeroes)] | |
| struct FromZeroes1 { | |
| value: NotZerocopy, | |
| } |
...we get this error:
| error[E0277]: the trait bound `NotZerocopy: FromZeroes` is not satisfied | |
| --> tests/ui-nightly/late_compile_pass.rs:23:10 | |
| | | |
| 23 | #[derive(FromZeroes)] | |
| | ^^^^^^^^^^ the trait `FromZeroes` is not implemented for `NotZerocopy` | |
| | | |
| = help: the following other types implement trait `FromZeroes`: | |
| () | |
| AU16 | |
| F32<O> | |
| F64<O> | |
| FromZeroes1 | |
| I128<O> | |
| I16<O> | |
| I32<O> | |
| and $N others | |
| = help: see issue #48214 | |
| = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
...which contains this suggestion:
| = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
We should confirm that the trivial_bounds feature would not allow to compile code which we intend not to compile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
compatibility-nonbreakingChanges that are (likely to be) non-breakingChanges that are (likely to be) non-breaking