blob: 593180ac09461116c8ba64feae00c4f6d4b3a08e [file] [log] [blame]
#![feature(const_trait_impl)]
struct S;
trait T {}
impl const dyn T {
//~^ ERROR inherent impls cannot be const
pub const fn new() -> std::sync::Mutex<dyn T> {}
//~^ ERROR mismatched types
//~| ERROR cannot be known at compilation time
}
fn main() {}