2024-02-16 14:02:50 -06:00
|
|
|
//@ revisions: current next
|
2024-03-10 20:18:41 -05:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2024-02-16 14:02:50 -06:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
//@ check-pass
|
2022-02-17 07:28:06 -06:00
|
|
|
|
|
|
|
use std::path::Path;
|
|
|
|
use std::ffi::OsStr;
|
|
|
|
use std::ops::Deref;
|
|
|
|
|
|
|
|
fn frob(path: &str) -> impl Deref<Target = Path> + '_ {
|
|
|
|
OsStr::new(path).as_ref()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn open_parent<'path>(_path: &'path Path) {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let old_path = frob("hello");
|
|
|
|
|
|
|
|
open_parent(&old_path);
|
|
|
|
}
|