Sign in
◑
Theme
rust
/
rust
/
a123594de1feec1732ed9251135bc42ccaaef8f3
/
.
/
tests
/
ui
/
unsized
/
trait-method-unsized-self-param.rs
blob: f3df9706503caec68ea1c2d3eddd2f4897f0ef3c [
file
]
//! Regression test for <https://github.com/rust-lang/rust/issues/27078>.
trait
Foo
{
const
BAR
:
i32
;
fn
foo
(
self
)
->
&
'
static
i32
{
//~^ ERROR the size for values of type
&<
Self
>::
BAR
}
}
fn
main
()
{}