2024-02-22 14:41:32 +11:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
trait T {}
|
|
|
|
|
|
|
|
|
|
impl const dyn T {
|
2025-07-30 18:00:53 -05:00
|
|
|
//~^ ERROR inherent impls cannot be const
|
2024-02-22 14:41:32 +11:00
|
|
|
pub const fn new() -> std::sync::Mutex<dyn T> {}
|
2024-02-15 17:12:05 +00:00
|
|
|
//~^ ERROR mismatched types
|
|
|
|
|
//~| ERROR cannot be known at compilation time
|
2024-02-22 14:41:32 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|