mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Enable lifetimes
SROA MIR-opt test
This commit is contained in:
parent
d1edc9d0db
commit
103159809a
@ -1,4 +1,3 @@
|
||||
// skip-filecheck
|
||||
// unit-test: ScalarReplacementOfAggregates
|
||||
// compile-flags: -Cpanic=abort
|
||||
// no-prefer-dynamic
|
||||
@ -16,6 +15,10 @@ struct Foo<T: Err> {
|
||||
|
||||
// EMIT_MIR lifetimes.foo.ScalarReplacementOfAggregates.diff
|
||||
fn foo<T: Err>() {
|
||||
// CHECK-LABEL: fn foo(
|
||||
|
||||
// CHECK-NOT: [foo:_.*]: Foo
|
||||
// CHECK-NOT: Box<dyn std::fmt::Display + 'static>
|
||||
let foo: Foo<T> = Foo {
|
||||
x: Ok(Box::new(5_u32)),
|
||||
y: 7_u32,
|
||||
|
Loading…
Reference in New Issue
Block a user