@@ -49,7 +49,7 @@ LL | reuse Trait::<_>::foo::<i32> as x;
4949 | ^ not allowed in type signatures
5050
5151error[E0046]: not all trait items implemented, missing: `foo`
52- --> $DIR/query-cycle-oom.rs:29 :5
52+ --> $DIR/query-cycle-oom.rs:28 :5
5353 |
5454LL | fn foo() -> Self::Assoc;
5555 | ------------------------ `foo` from trait
@@ -58,7 +58,7 @@ LL | impl Trait for u8 {
5858 | ^^^^^^^^^^^^^^^^^ missing `foo` in implementation
5959
6060error[E0390]: cannot define inherent `impl` for primitive types
61- --> $DIR/query-cycle-oom.rs:50 :5
61+ --> $DIR/query-cycle-oom.rs:49 :5
6262 |
6363LL | impl () {
6464 | ^^^^^^^
@@ -74,13 +74,10 @@ LL | reuse to_reuse::foo { &self.0 }
7474 = help: you might be missing a crate named `to_reuse`
7575
7676error[E0061]: this function takes 0 arguments but 1 argument was supplied
77- --> $DIR/query-cycle-oom.rs:23:12
77+ --> $DIR/query-cycle-oom.rs:36:22
7878 |
79- LL | fn foo() -> Self::Assoc;
80- | ^^^
81- ...
8279LL | reuse Trait::* { &self.0 }
83- | ------- unexpected argument
80+ | ^ ------- unexpected argument
8481 |
8582note: associated function defined here
8683 --> $DIR/query-cycle-oom.rs:23:12
@@ -89,29 +86,15 @@ LL | fn foo() -> Self::Assoc;
8986 | ^^^
9087help: remove the extra argument
9188 |
92- LL - fn foo() -> Self::Assoc;
93- LL -
94- LL -
95- LL - fn bar(&self) -> u8;
96- LL - }
97- LL -
98- LL - impl Trait for u8 {
99- LL -
100- LL - fn bar(&self) -> u8 { 1 }
101- LL - }
102- LL -
103- LL - struct S(u8);
104- LL -
105- LL - impl Trait for S {
10689LL - reuse Trait::* { &self.0 }
107- LL + fn fo &self.0 }
90+ LL + reuse Trait:: &self.0 }
10891 |
10992
11093error[E0599]: no method named `foo` found for reference `&()` in the current scope
111- --> $DIR/query-cycle-oom.rs:44:12
94+ --> $DIR/query-cycle-oom.rs:50:22
11295 |
113- LL | fn foo(&self) -> Self::Assoc<3> {
114- | ^^ ^ method not found in `&()`
96+ LL | reuse Trait::*;
97+ | ^ method not found in `&()`
11598 |
11699 = help: items from traits can only be used if the trait is implemented and in scope
117100 = note: the following traits define an item `foo`, perhaps you need to implement one of them:
0 commit comments