blob: 97e89f96fe1b01a0f1566b118ba2e10faf2216be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(const_trait_impl)]
#![feature(effects)]
struct S;
trait T {}
impl const dyn T {
//~^ ERROR inherent impls cannot be `const`
//~| ERROR the const parameter `host` is not constrained by the impl trait, self type, or
pub const fn new() -> std::sync::Mutex<dyn T> {}
}
fn main() {}
|