blob: ac2934d8fe64655fc533a34250eca01dca220d80 [file] [log] [blame]
//! Check that a reference to a potentially unsized type (`&T`) is itself considered `Sized`.
//@ run-pass
#![allow(dead_code)]
fn bar<T: Sized>() {}
fn foo<T>() {
bar::<&T>()
}
pub fn main() {}