Code
pub struct T<'a>(&'a str);
pub fn f<T>() -> _ {
T
}
pub fn g<'a>(val: T<'a>) -> _ {
T
}
fn main() {}
Meta
rustc --version --verbose:
rustc 1.96.0-nightly (fb27476aa 2026-03-28)
binary: rustc
commit-hash: fb27476aaf1012f1f6ace6306f9b990e0d989c31
commit-date: 2026-03-28
host: x86_64-unknown-linux-gnu
release: 1.96.0-nightly
LLVM version: 22.1.2
Code
Meta
rustc --version --verbose: