rust/tests/ui/lifetimes/lifetime-bound-whitespace-13703.rs
2025-08-05 19:34:46 +05:00

8 lines
230 B
Rust

//! Regression test for https://github.com/rust-lang/rust/issues/13703
//@ check-pass
pub struct Foo<'a, 'b: 'a> { foo: &'a &'b isize }
pub fn foo<'a, 'b>(x: Foo<'a, 'b>, _o: Option<& & ()>) { let _y = x.foo; }
fn main() {}