diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/traits/next-solver/unsafe-auto-trait-impl.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/unsafe-auto-trait-impl.rs b/tests/ui/traits/next-solver/unsafe-auto-trait-impl.rs new file mode 100644 index 000000000..f66bf0b87 --- /dev/null +++ b/tests/ui/traits/next-solver/unsafe-auto-trait-impl.rs @@ -0,0 +1,8 @@ +// compile-flags: -Znext-solver +// check-pass + +struct Foo(*mut ()); + +unsafe impl Sync for Foo {} + +fn main() {} |