2020-01-02 16:31:30 -08:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
#![allow(bare_trait_objects)]
|
|
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
trait T {}
|
|
|
|
|
|
2020-01-13 20:30:34 -08:00
|
|
|
impl const S {}
|
|
|
|
|
//~^ ERROR inherent impls cannot be `const`
|
|
|
|
|
|
2025-06-05 08:58:44 +02:00
|
|
|
impl const dyn T {}
|
2020-01-13 20:30:34 -08:00
|
|
|
//~^ ERROR inherent impls cannot be `const`
|
2020-01-02 16:31:30 -08:00
|
|
|
|
|
|
|
|
fn main() {}
|