Closed
Description
type actor<T> = {
unused: bool
};
type self<T> = {
unused: bool
};
fn act<T:send>(+behavior: sendfn(self<T>)) -> actor<T> {
{unused: true}
}
tag in {
preprocess([u8]);
exit;
}
fn mk() -> actor<in> {
act {|self|
}
}
fn main() {
}
../src/test/run-pass/block-infer.rs:19:4: 19:7 error: cannot determine a type for this expression
../src/test/run-pass/block-infer.rs:19 act {|self|
Writing act::<in>
allows it to work.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
brson commentedon Jan 9, 2012
Writing
act::<in> {|self: self<in>|
doesn't work either.brson commentedon Feb 6, 2012
This doesn't have to do with lambda blocks at all. The following also doesn't work:
Update rustc-dev-guide
Rollup merge of rust-lang#102788 - joshtriplett:bump-rustc-dev-guide,…
Rollup merge of rust-lang#102788 - joshtriplett:bump-rustc-dev-guide,…
Rollup merge of rust-lang#102788 - joshtriplett:bump-rustc-dev-guide,…
Rollup merge of rust-lang#102788 - joshtriplett:bump-rustc-dev-guide,…
Use #[kani::proof] for both sync and async functions (instead of #[ka…
don't refer to the compile-time interpreter as "Miri" (rust-lang#1471)
don't refer to the compile-time interpreter as "Miri" (rust-lang#1471)