]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17431-5.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / ui / issues / issue-17431-5.rs
1 use std::marker;
2
3 struct Foo { foo: Bar<Foo> }
4
5 struct Bar<T> { x: Bar<Foo> , marker: marker::PhantomData<T> }
6 //~^ ERROR recursive type `Bar` has infinite size
7
8 impl Foo { fn foo(&self) {} }
9
10 fn main() {
11 }