File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
branches/try/src/libstd/io Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3770c42a4959cbabc73da52abc7e3db96657974e
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: d6736a1440d42f6af967a8a20ab8d73522112b72
5
- refs/heads/try: 05810604c8f1ecebe35a8676df7371487ec80513
5
+ refs/heads/try: 14668f2791c4893b84ae4111c52dee07c79faac7
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -81,13 +81,18 @@ Some examples of obvious things you might want to do
81
81
82
82
* Make a simple TCP client connection and request
83
83
84
- ```rust,should_fail
84
+ ```rust
85
85
# #![allow(unused_must_use)]
86
86
use std::io::net::tcp::TcpStream;
87
87
88
+ # // connection doesn't fail if a server is running on 8080
89
+ # // locally, we still want to be type checking this code, so lets
90
+ # // just stop it running (#11576)
91
+ # if false {
88
92
let mut socket = TcpStream::connect("127.0.0.1", 8080).unwrap();
89
93
socket.write(bytes!("GET / HTTP/1.0\n\n"));
90
94
let response = socket.read_to_end();
95
+ # }
91
96
```
92
97
93
98
* Make a simple TCP server
You can’t perform that action at this time.
0 commit comments