Skip to content

Commit d8f5790

Browse files
committed
fix license
1 parent 376a6b2 commit d8f5790

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/test/ui/dropck/dropck-union.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0597]: `v` does not live long enough
2-
--> $DIR/dropck-union.rs:39:18
2+
--> $DIR/dropck-union.rs:49:18
33
|
44
LL | v.0.set(Some(&v)); //~ ERROR: `v` does not live long enough
55
| ^^ borrowed value does not live long enough

src/test/ui/dropck/dropck-union.rs

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
111
#![feature(untagged_unions)]
212

313
use std::cell::Cell;

src/test/ui/dropck/dropck-union.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0597]: `v` does not live long enough
2-
--> $DIR/dropck-union.rs:39:19
2+
--> $DIR/dropck-union.rs:49:19
33
|
44
LL | v.0.set(Some(&v)); //~ ERROR: `v` does not live long enough
55
| ^ borrowed value does not live long enough

0 commit comments

Comments
 (0)