Loading...
async.await
Call for Tests
Existing Test
s
Generators
ui:
disallow lifetime introspection for auto trait selection
yielding references to locals is an error
dropck applies appropriately to upvars
region requirements apply correctly to output
borrow in use when generator yields
and another
and another
(in
if let
w/
ref
pattern)
and another
(with
iterators)
and another
and another
(
while
ref)
arguments not allowed
inherits auto traits from upvars
borrowed local escapes from generator
yielded value must be Sized
static
generators are not
Unpin
mismatched return types
yield
in disallowed places:
yield
in args
yield
in const
yield
outside generators
yield
in static
run-fail:
resume after panic
nll:
distinct lifetimes of locals
respect mutability of upvars
mir-opt:
drop shims should not have blocks spuriously marked as cleanup
generate StorageDead on unwind paths for generators
lots
of run-pass
Async/await surface
run-pass:
async fn size
rustdoc:
async fn
async move
in doctests
(used
to fail due to editions)
ui:
await
is a 2018 edition keyword
async
not allowed in 2015 edition
async fn
argument desugaring:
drop order for
async fn
parameters
async fn
argument-position patterns
test that we don’t show the desugared variables in error messages
binding mutability
misc / smoke test
(simple
by-value and borrowed arguments)
multiple lifetimes
Please turn on JavaScript to use Paper in all of its awesomeness. ^_^
Existing Tests
Generators
Async/await surface