rust/src/test/run-pass/sized-owned-pointer.rs
2018-12-25 21:08:33 -07:00

10 lines
204 B
Rust

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