rust/src/test/run-pass/sized-owned-pointer.rs

10 lines
204 B
Rust
Raw Normal View History

#![allow(dead_code)]
2013-05-30 20:40:55 -05:00
// Possibly-dynamic size of typaram should be cleared at pointer boundary.
// pretty-expanded FIXME #23616
2013-05-30 20:40:55 -05:00
fn bar<T: Sized>() { }
fn foo<T>() { bar::<Box<T>>() }
pub fn main() { }