We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lifetimes
1 parent d1edc9d commit 1031598Copy full SHA for 1031598
tests/mir-opt/sroa/lifetimes.rs
@@ -1,4 +1,3 @@
1
-// skip-filecheck
2
// unit-test: ScalarReplacementOfAggregates
3
// compile-flags: -Cpanic=abort
4
// no-prefer-dynamic
@@ -16,6 +15,10 @@ struct Foo<T: Err> {
16
15
17
// EMIT_MIR lifetimes.foo.ScalarReplacementOfAggregates.diff
18
fn foo<T: Err>() {
+ // CHECK-LABEL: fn foo(
19
+
20
+ // CHECK-NOT: [foo:_.*]: Foo
21
+ // CHECK-NOT: Box<dyn std::fmt::Display + 'static>
22
let foo: Foo<T> = Foo {
23
x: Ok(Box::new(5_u32)),
24
y: 7_u32,
0 commit comments