]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/repeat-to-run-dtor-twice.rs
Add test for issue-57200
[rust.git] / src / test / ui / repeat-to-run-dtor-twice.rs
index 88441594a7e9345f0f460fb994d35f5538205f0f..d857178166a88e1f724ab0a58e5583109605e7bd 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2012 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.
-
 // Tests that one can't run a destructor twice with the repeated vector
 // literal syntax.
 
@@ -25,5 +15,5 @@ fn drop(&mut self) {
 fn main() {
     let a = Foo { x: 3 };
     let _ = [ a; 5 ];
-    //~^ ERROR `Foo: std::marker::Copy` is not satisfied
+    //~^ ERROR the trait bound `Foo: std::marker::Copy` is not satisfied [E0277]
 }