X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fmaybe-bounds.rs;h=02ed45c656f1c533ccf9faa8ee738906e62b5678;hb=741d4ff713f45eb9168b0e5f6ba77f5779ed09ba;hp=ec8a6b8ffdc9da328c4129ef218f827d888b237b;hpb=b36917b33104dc0af4d26d53899b7cd064a40b22;p=rust.git diff --git a/src/test/ui/maybe-bounds.rs b/src/test/ui/maybe-bounds.rs index ec8a6b8ffdc..02ed45c656f 100644 --- a/src/test/ui/maybe-bounds.rs +++ b/src/test/ui/maybe-bounds.rs @@ -1,16 +1,9 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. +trait Tr: ?Sized {} +//~^ ERROR `?Trait` is not permitted in supertraits -trait Tr: ?Sized {} //~ ERROR `?Trait` is not permitted in supertraits - -type A1 = Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types -type A2 = for<'a> Tr + (?Sized); //~ ERROR `?Trait` is not permitted in trait object types +type A1 = dyn Tr + (?Sized); +//~^ ERROR `?Trait` is not permitted in trait object types +type A2 = dyn for<'a> Tr + (?Sized); +//~^ ERROR `?Trait` is not permitted in trait object types fn main() {}