]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/recursive-type-field.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / span / recursive-type-field.rs
1 use std::rc::Rc;
2
3 struct Foo<'a> { //~ ERROR recursive type
4     bar: Bar<'a>,
5     b: Rc<Bar<'a>>,
6 }
7
8 struct Bar<'a> { //~ ERROR recursive type
9     y: (Foo<'a>, Foo<'a>),
10     z: Option<Bar<'a>>,
11     a: &'a Foo<'a>,
12     c: &'a [Bar<'a>],
13     d: [Bar<'a>; 1],
14     e: Foo<'a>,
15     x: Bar<'a>,
16 }
17
18 fn main() {}