summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-1211.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-1211.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-1211.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-1211.rs b/src/tools/rustfmt/tests/target/issue-1211.rs
new file mode 100644
index 000000000..de4c5c87e
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-1211.rs
@@ -0,0 +1,13 @@
+fn main() {
+ for iface in &ifaces {
+ match iface.addr {
+ get_if_addrs::IfAddr::V4(ref addr) => match addr.broadcast {
+ Some(ip) => {
+ sock.send_to(&buf, (ip, 8765)).expect("foobar");
+ }
+ _ => (),
+ },
+ _ => (),
+ };
+ }
+}