rust/tests/ui/sized-owned-pointer.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
217 B
Rust
Raw Normal View History

// run-pass
#![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() { }