Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
sized
/
sized-reference-to-unsized.rs
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
()
{}