Files
rust/tests/ui/traits/const-traits/effects/span-bug-issue-121418.rs

15 lines
338 B
Rust
Raw Normal View History

#![feature(const_trait_impl)]
2024-06-21 12:22:29 +00:00
#![feature(effects)] //~ WARN the feature `effects` is incomplete
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() {}