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
219 B
Rust
Raw Normal View History

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