about summary refs log tree commit diff
path: root/tests/ui/parser/generics-rangle-eq-15043.rs
blob: 1afc334dfd816b974c57088387f7a91cbec8d008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Regression test for https://github.com/rust-lang/rust/issues/15043

//@ run-pass

#![allow(warnings)]

struct S<T>(T);

static s1: S<S<usize>>=S(S(0));
static s2: S<usize>=S(0);

fn main() {
    let foo: S<S<usize>>=S(S(0));
    let foo: S<usize>=S(0);
}