rust/tests/ui/issues/issue-2063-resource.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
252 B
Rust
Raw Normal View History

// check-pass
#![allow(dead_code)]
// test that autoderef of a type like this does not
// cause compiler to loop. Note that no instances
// of such a type could ever be constructed.
struct S {
2014-10-02 08:10:09 +03:00
x: X,
2012-09-06 19:40:15 -07:00
to_str: (),
}
2012-09-05 15:58:43 -07:00
struct X(Box<S>);
2014-10-02 08:10:09 +03:00
fn main() {}