-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e2a897
commit 4ff7402
Showing
4 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: multiple `gservice` attributes are not allowed | ||
--> tests/ui/gservice_fails_multiple_not_allowed.rs:15:1 | ||
--> tests/ui/gservice_fails_multiple_not_allowed.rs:13:1 | ||
| | ||
15 | impl MyService { | ||
13 | impl MyService { | ||
| ^^^^ |
2 changes: 0 additions & 2 deletions
2
macros/tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
macros/tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
error: multiple `gservice` attributes are not allowed | ||
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:9:1 | ||
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:7:1 | ||
| | ||
9 | impl MyService { | ||
7 | impl MyService { | ||
| ^^^^ | ||
|
||
error[E0599]: no method named `this` found for struct `MyService` in the current scope | ||
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:10:12 | ||
| | ||
5 | struct MyService; | ||
| ---------------- method `this` not found for this struct | ||
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:8:12 | ||
| | ||
3 | struct MyService; | ||
| ---------------- method `this` not found for this struct | ||
... | ||
10 | pub fn this(&self, p1: bool) -> bool { | ||
| ^^^^ method not found in `MyService` | ||
8 | pub fn this(&self, p1: bool) -> bool { | ||
| ^^^^ method not found in `MyService` |