Skip to content

Commit 71046c5

Browse files
committed
Add 85552
Issue: rust-lang/rust#85552
1 parent 6ae5fda commit 71046c5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ices/85552.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
rustc -Z unpretty=thir-tree - <<'EOF'
4+
struct Foo(pub str);
5+
6+
impl Foo {
7+
fn print(&self) {
8+
match self {
9+
&Foo(ref s) => println!("f\"{}\"", s),
10+
}
11+
}
12+
}
13+
14+
fn main() {}
15+
EOF

0 commit comments

Comments
 (0)