1
Fork 0
rust/src/test/ui/variance/variance-trait-bounds.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
635 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0208]: [+, +]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-trait-bounds.rs:16:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / struct TestStruct<U,T:Setter<U>> {
2018-08-08 14:28:26 +02:00
LL | | t: T, u: U
LL | | }
| |_^
error[E0208]: [*, +]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-trait-bounds.rs:21:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / enum TestEnum<U,T:Setter<U>> {
2018-08-08 14:28:26 +02:00
LL | | Foo(T)
LL | | }
| |_^
error[E0208]: [*, +]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-trait-bounds.rs:26:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / struct TestContraStruct<U,T:Setter<U>> {
2018-08-08 14:28:26 +02:00
LL | | t: T
LL | | }
| |_^
error[E0208]: [*, +]
2018-12-25 08:56:47 -07:00
--> $DIR/variance-trait-bounds.rs:31:1
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | / struct TestBox<U,T:Getter<U>+Setter<U>> {
2018-08-08 14:28:26 +02:00
LL | | t: T
LL | | }
| |_^
error: aborting due to 4 previous errors