mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
12 lines
202 B
Rust
12 lines
202 B
Rust
//! 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() {}
|