blob: f46f73bf26a26c238b5ef239ffc6859117545d9c [file] [log] [blame]
Graydon Hoared1affff2012-12-11 01:32:481// Copyright 2012 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
Erik Price5731ca32013-12-10 07:16:1811struct yes1<'a> {
12 x: &'a uint,
Niko Matsakis3c995fb2012-04-19 04:26:2513}
14
Niko Matsakis5e54a732013-10-29 10:14:5915struct yes2<'a> {
16 x: &'a uint,
Ben Striegelf4a5a762012-11-14 06:22:3717}
18
Niko Matsakis5e54a732013-10-29 10:14:5919struct StructDecl {
Huon Wilson0c70ce12015-01-08 10:54:3520 a: &'a isize, //~ ERROR use of undeclared lifetime name `'a`
21 b: &'a isize, //~ ERROR use of undeclared lifetime name `'a`
Niko Matsakis5e54a732013-10-29 10:14:5922}
23
24
Ben Striegelf4a5a762012-11-14 06:22:3725fn main() {}