rust/tests/ui/dyn-star/async-block-dyn-star.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
220 B
Rust
Raw Permalink Normal View History

2024-11-20 02:46:56 +00:00
//@ edition:2018
#![feature(dyn_star, const_async_blocks)]
//~^ WARN the feature `dyn_star` is incomplete
static S: dyn* Send + Sync = async { 42 };
//~^ ERROR needs to have the same ABI as a pointer
2024-11-20 02:46:56 +00:00
pub fn main() {}