Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
object-safety
/
object-safety-associated-consts.rs
blob: 5900019ea915ae298e285c29a7d636c5bb1b951f [
file
] [
log
] [
blame
]
// Check that we correctly prevent users from making trait objects
// from traits with associated consts.
trait
Bar
{
const
X
:
usize
;
}
fn
make_bar
<
T
:
Bar
>(
t
:
&
T
)
->
&
dyn
Bar
{
//~^ ERROR E0038
t
}
fn
main
()
{
}