2013-05-07 15:53:25 -05:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
// Testing that we can't store a borrowed pointer it task-local storage
|
|
|
|
|
2013-07-11 03:03:37 -05:00
|
|
|
use std::local_data;
|
2013-05-07 15:53:25 -05:00
|
|
|
|
2013-08-15 08:16:59 -05:00
|
|
|
local_data_key!(key: @&int)
|
2013-10-29 05:14:59 -05:00
|
|
|
//~^ ERROR missing lifetime specifier
|
2013-05-07 15:53:25 -05:00
|
|
|
|
2013-07-12 03:38:44 -05:00
|
|
|
fn main() {}
|