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

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

11 lines
214 B
Rust
Raw Normal View History

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