2020-01-02 18:31:30 -06:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
#![allow(bare_trait_objects)]
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
trait T {}
|
|
|
|
|
2020-01-13 22:30:34 -06:00
|
|
|
impl const S {}
|
|
|
|
//~^ ERROR inherent impls cannot be `const`
|
|
|
|
|
2020-01-02 18:31:30 -06:00
|
|
|
impl const T {}
|
2020-01-13 22:30:34 -06:00
|
|
|
//~^ ERROR inherent impls cannot be `const`
|
2020-01-02 18:31:30 -06:00
|
|
|
|
|
|
|
fn main() {}
|