]>
git.proxmox.com Git - rustc.git/blob - compiler/rustc_metadata/src/dynamic_lib/tests.rs
4 fn test_errors_do_not_crash() {
11 // Open /dev/null as a library to get an error, and make sure
12 // that only causes an error, and not a crash.
13 let path
= Path
::new("/dev/null");
14 match DynamicLibrary
::open(&path
) {
16 Ok(_
) => panic
!("Successfully opened the empty library."),