Bless tests
This commit is contained in:
parent
988e75bb65
commit
b614b0e64c
@ -1,5 +1,5 @@
|
||||
error[E0605]: non-primitive cast: `Kind2` as `u8`
|
||||
--> $DIR/issue-88621.rs:11:13
|
||||
--> $DIR/issue-88621.rs:9:13
|
||||
|
|
||||
LL | let _ = Kind2::Foo() as u8;
|
||||
| ^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0732]: `#[repr(inttype)]` must be specified
|
||||
--> $DIR/arbitrary_enum_discriminant-no-repr.rs:4:1
|
||||
--> $DIR/arbitrary_enum_discriminant-no-repr.rs:3:1
|
||||
|
|
||||
LL | enum Enum {
|
||||
| ^^^^^^^^^
|
||||
|
@ -2,7 +2,6 @@
|
||||
//! The payloads of an enum variant should be ordered after its tag.
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(arbitrary_enum_discriminant)]
|
||||
#![feature(transmutability)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
//! an enum with a multi-byte tag.
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(arbitrary_enum_discriminant)]
|
||||
#![feature(transmutability)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
error[E0277]: `Src` cannot be safely transmuted into `Unexpected` in the defining scope of `assert::Context`.
|
||||
--> $DIR/should_respect_endianness.rs:37:36
|
||||
--> $DIR/should_respect_endianness.rs:36:36
|
||||
|
|
||||
LL | assert::is_transmutable::<Src, Unexpected>();
|
||||
| ^^^^^^^^^^ `Src` cannot be safely transmuted into `Unexpected` in the defining scope of `assert::Context`.
|
||||
|
|
||||
= help: the trait `BikeshedIntrinsicFrom<Src, assert::Context, Assume { alignment: true, lifetimes: true, safety: true, validity: true }>` is not implemented for `Unexpected`
|
||||
note: required by a bound in `is_transmutable`
|
||||
--> $DIR/should_respect_endianness.rs:15:14
|
||||
--> $DIR/should_respect_endianness.rs:14:14
|
||||
|
|
||||
LL | pub fn is_transmutable<Src, Dst>()
|
||||
| --------------- required by a bound in this
|
||||
|
Loading…
x
Reference in New Issue
Block a user