1 use std::ffi::{OsStr, OsString};
4 fn check(p: &dyn AsRef<Path>) {
5 let m = std::fs::metadata(&p);
10 let s: OsString = ".".into();
13 //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
14 //~| HELP within `OsStr`, the trait `Sized` is not implemented for `[u8]`
15 //~| HELP consider borrowing the value, since `&OsStr` can be coerced into `dyn AsRef<Path>`