1
Fork 0

test: Fix fallout in tests

This commit is contained in:
Alex Crichton 2015-04-17 22:12:20 -07:00
parent eeb94886ad
commit 0791f9f406
112 changed files with 205 additions and 466 deletions

View file

@ -10,21 +10,19 @@
#![feature(optin_builtin_traits)]
use std::marker::MarkerTrait;
trait MyTrait: MarkerTrait {}
trait MyTrait {}
impl MyTrait for .. {}
impl MyTrait for .. {}
//~^ ERROR conflicting implementations for trait `MyTrait`
trait MySafeTrait: MarkerTrait {}
trait MySafeTrait {}
unsafe impl MySafeTrait for .. {}
//~^ ERROR implementing the trait `MySafeTrait` is not unsafe
unsafe trait MyUnsafeTrait: MarkerTrait {}
unsafe trait MyUnsafeTrait {}
impl MyUnsafeTrait for .. {}
//~^ ERROR the trait `MyUnsafeTrait` requires an `unsafe impl` declaration