use file!() even though it shouldn't be necessary

This commit is contained in:
Alex Burka 2016-08-25 12:39:25 -04:00 committed by GitHub
parent b40754f0f7
commit b2cd3e59b8

View File

@ -34,7 +34,7 @@ fn main() {
}
fn parent() {
let file = File::open("src/test/run-pass/fds-are-cloexec.rs").unwrap();
let file = File::open(file!()).unwrap();
let tcp1 = TcpListener::bind("127.0.0.1:0").unwrap();
let tcp2 = tcp1.try_clone().unwrap();
let addr = tcp1.local_addr().unwrap();