Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
infer
/
method-chain.rs
blob: 0c5eed4894cb37ad44be8dbc6d79c694f5c85e49 [
file
] [
log
] [
blame
] [
edit
]
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
}