rollup merge of #23211: FlaPer87/oibit-send-and-friends
Fixes #23225 r? @nikomatsakis
This commit is contained in:
commit
ec1a85a85c
6 changed files with 79 additions and 48 deletions
|
|
@ -21,4 +21,14 @@ impl MyTrait for .. {}
|
|||
impl MyTrait for .. {}
|
||||
//~^ ERROR conflicting implementations for trait `MyTrait`
|
||||
|
||||
trait MySafeTrait: MarkerTrait {}
|
||||
|
||||
unsafe impl MySafeTrait for .. {}
|
||||
//~^ ERROR implementing the trait `MySafeTrait` is not unsafe
|
||||
|
||||
unsafe trait MyUnsafeTrait: MarkerTrait {}
|
||||
|
||||
impl MyUnsafeTrait for .. {}
|
||||
//~^ ERROR the trait `MyUnsafeTrait` requires an `unsafe impl` declaration
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(optin_builtin_traits)]
|
||||
|
||||
pub mod bar {
|
||||
use std::marker;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue