blob: 0c5eed4894cb37ad44be8dbc6d79c694f5c85e49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
struct Foo;
impl Foo {
fn bar(self) -> Foo {
Foo
}
fn baz<const N: usize>(self) -> Foo {
println!("baz: {}", N);
Foo
}
}
fn main() {
Foo.bar().bar().bar().bar().baz(); //~ ERROR type annotations needed
}
|