blob: b353824e931d472bbf223116650af91b644e7211 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//! 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);
}
|