]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/no-implicit-prelude.rs
Rollup merge of #62600 - emmericp:libtest-add-show-output, r=gnzlbg
[rust.git] / src / test / ui / no-implicit-prelude.rs
index 8a4a0aef0699db59a88e1a53345c260292b095de..4b0ca4d524e620d09af55140b5d79e3d27ac7764 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2013 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 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 #![no_implicit_prelude]
 
 // Test that things from the prelude aren't in scope. Use many of them
@@ -18,7 +8,7 @@
 
 struct Test;
 impl Add for Test {} //~ ERROR cannot find trait `Add` in this scope
-impl Clone for Test {} //~ ERROR cannot find trait `Clone` in this scope
+impl Clone for Test {} //~ ERROR expected trait, found derive macro `Clone`
 impl Iterator for Test {} //~ ERROR cannot find trait `Iterator` in this scope
 impl ToString for Test {} //~ ERROR cannot find trait `ToString` in this scope
 impl Writer for Test {} //~ ERROR cannot find trait `Writer` in this scope