blob: b353824e931d472bbf223116650af91b644e7211 [file] [log] [blame]
//! Test that occurs check prevents infinite types during type inference.
//!
//! Regression test for <https://github.com/rust-lang/rust/issues/768>.
fn main() {
let f;
let g;
g = f;
//~^ ERROR overflow assigning `Box<_>` to `_`
f = Box::new(g);
}