rustup
This commit is contained in:
parent
bfd5bfe6ba
commit
c2adc2e234
@ -1 +1 @@
|
||||
acb8934fd57b3c2740c4abac0a5728c2c9b1423b
|
||||
e42c4d7218b2596276152c5eb1e69335621f3086
|
||||
|
@ -2,7 +2,6 @@
|
||||
// Make sure we find these even with many checks disabled.
|
||||
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
|
||||
|
||||
|
||||
fn main() {
|
||||
let b = unsafe { std::mem::transmute::<u8, bool>(2) };
|
||||
let _x = b == std::hint::black_box(true); //~ ERROR: interpreting an invalid 8-bit value as a bool
|
||||
|
@ -1,6 +1,8 @@
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
trait T { type Item; }
|
||||
trait T {
|
||||
type Item;
|
||||
}
|
||||
|
||||
type Alias<'a> = impl T<Item = &'a ()>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user