2025-07-01 19:28:38 +05:00
|
|
|
//! Check that a reference to a potentially unsized type (`&T`) is itself considered `Sized`.
|
|
|
|
|
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2019-07-27 00:54:25 +03:00
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2025-07-01 19:28:38 +05:00
|
|
|
fn bar<T: Sized>() {}
|
|
|
|
|
fn foo<T>() {
|
|
|
|
|
bar::<&T>()
|
|
|
|
|
}
|
|
|
|
|
pub fn main() {}
|