Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
traits
/
const-traits
/
inherent-impl.rs
blob: 5ca4c5d7863d26fa274f7386e0713e414e2470e9 [
file
] [
log
] [
blame
]
#![
feature
(
const_trait_impl
)]
#![
allow
(
bare_trait_objects
)]
struct
S
;
trait
T
{}
impl
const
S
{}
//~^ ERROR inherent impls cannot be const
impl
const
dyn T
{}
//~^ ERROR inherent impls cannot be const
fn
main
()
{}