diff options
Diffstat (limited to 'src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs')
-rw-r--r-- | src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs b/src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs new file mode 100644 index 000000000..1554408c1 --- /dev/null +++ b/src/test/ui/lint/must_not_suspend/feature-gate-must_not_suspend.rs @@ -0,0 +1,9 @@ +// edition:2018 + +#[must_not_suspend = "You gotta use Umm's, ya know?"] //~ ERROR the `#[must_not_suspend]` +struct Umm { + _i: i64 +} + +fn main() { +} |