type foo[T] = tup(T);
type bar[T] = foo[T];
fn takebar[T](bar[T] b) {}
fn main() {}
type foo[T] = tup(T);
type bar[T] = foo[T];
fn takebar[T](&bar[T] b) {}
fn main() {}
type foo[T] = tup(T);
type bar[T] = foo[T];
fn takebar[T](&bar[T] b) { }
fn main() { }
type foo[T] = rec(T a);
type bar[T] = foo[T];
fn takebar[T](&bar[T] b) { }
fn main() { }
type foo[T] = {a: T};
type bar[T] = foo[T];
fn takebar[T](b: &bar[T]) { }
fn main() { }
type foo[T] = {a: T};
type bar[T] = foo<T>;
fn takebar[T](b: &bar<T>) { }
fn main() { }
type foo<T> = {a: T};
type bar<T> = foo<T>;
fn takebar<T>(b: &bar<T>) { }
fn main() { }
type foo<T> = {a: T};
type bar<T> = foo<T>;
fn takebar<T>(b: bar<T>) { }
fn main() { }
// 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.
type foo<T> = {a: T};
type bar<T> = foo<T>;
fn takebar<T>(b: bar<T>) { }
fn main() { }
// 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.
type foo<T> = {a: T};
type bar<T> = foo<T>;
fn takebar<T>(b: bar<T>) { }
pub fn main() { }
// 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.
struct Foo<T> {
a: T
}
type Bar<T> = Foo<T>;
fn takebar<T>(b: Bar<T>) { }
pub fn main() { }
// 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.
struct Foo<T> {
a: T
}
type Bar<T> = Foo<T>;
fn takebar<T>(_b: Bar<T>) { }
pub fn main() { }
// 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.
// pretty-expanded FIXME #23616
struct Foo<T> {
a: T
}
type Bar<T> = Foo<T>;
fn takebar<T>(_b: Bar<T>) { }
pub fn main() { }