libstd: Change Path::new to Path::init.
This commit is contained in:
parent
6c672ee094
commit
c54427ddfb
40 changed files with 546 additions and 541 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue