blob: b7b93ef1c443b810e0d18cbfc1817d642a3a94f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
trait X {
type Y<'a>;
}
const _: () = {
fn f1<'a>(arg : Box<dyn X< : 32 >>) {}
//~^ ERROR: expected one of `>`, a const expression, lifetime, or type, found `:`
};
const _: () = {
fn f1<'a>(arg : Box<dyn X< = 32 >>) {}
//~^ ERROR: expected one of `>`, a const expression, lifetime, or type, found `=`
};
fn main() {}
|