1 // Test for a subtle failure computing kinds of cyclic types, in which
2 // temporary kinds wound up being stored in a cache and used later.
3 // See rustc::ty::type_contents() for more information.
6 struct List { key: isize, next: Option<Box<List>> }
8 fn foo(node
: Box
<List
>) -> isize {
9 let r
= match node
.next
{
10 Some(right
) => consume(right
),
13 consume(node
) + r
//~ ERROR use of partially moved value: `node`
16 fn consume(v
: Box
<List
>) -> isize {