mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
23ab1bda92
Migrate to a simplified safety analysis that does not use visibility. Closes https://github.com/rust-lang/project-safe-transmute/issues/15
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
error[E0107]: trait takes at most 2 generic arguments but 5 generic arguments were supplied
|
|
--> $DIR/issue-101739-2.rs:17:14
|
|
|
|
|
LL | Dst: BikeshedIntrinsicFrom<
|
|
| ^^^^^^^^^^^^^^^^^^^^^ expected at most 2 generic arguments
|
|
...
|
|
LL | / ASSUME_LIFETIMES,
|
|
LL | | ASSUME_VALIDITY,
|
|
LL | | ASSUME_VISIBILITY,
|
|
| |_____________________________- help: remove these generic arguments
|
|
|
|
error: the constant `ASSUME_ALIGNMENT` is not of type `Assume`
|
|
--> $DIR/issue-101739-2.rs:17:14
|
|
|
|
|
LL | Dst: BikeshedIntrinsicFrom<
|
|
| ______________^
|
|
LL | |
|
|
LL | | Src,
|
|
LL | | ASSUME_ALIGNMENT,
|
|
... |
|
|
LL | | ASSUME_VISIBILITY,
|
|
LL | | >,
|
|
| |_________^ expected `Assume`, found `bool`
|
|
|
|
|
note: required by a bound in `BikeshedIntrinsicFrom`
|
|
--> $SRC_DIR/core/src/mem/transmutability.rs:LL:COL
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/issue-101739-2.rs:20:13
|
|
|
|
|
LL | ASSUME_ALIGNMENT,
|
|
| ^^^^^^^^^^^^^^^^ expected `Assume`, found `bool`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
Some errors have detailed explanations: E0107, E0308.
|
|
For more information about an error, try `rustc --explain E0107`.
|