libstd: Change Path::new to Path::init.
This commit is contained in:
@@ -122,7 +122,7 @@ mod test {
|
||||
fn test_errors_do_not_crash() {
|
||||
// Open /dev/null as a library to get an error, and make sure
|
||||
// that only causes an error, and not a crash.
|
||||
let path = GenericPath::new("/dev/null");
|
||||
let path = GenericPath::init("/dev/null");
|
||||
match DynamicLibrary::open(Some(&path)) {
|
||||
Err(_) => {}
|
||||
Ok(_) => fail!("Successfully opened the empty library.")
|
||||
|
||||
Reference in New Issue
Block a user