2023-05-27 12:35:17 -05:00
|
|
|
//@ revisions: current next
|
2024-03-10 20:18:41 -05:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-12-14 06:11:28 -06:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2022-02-17 07:28:06 -06:00
|
|
|
//@ check-pass
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|