-
Notifications
You must be signed in to change notification settings - Fork 430
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
Showing
11 changed files
with
56 additions
and
63 deletions.
There are no files selected for viewing
31 changes: 6 additions & 25 deletions
31
crates/lang/tests/ui/contract/fail/constructor-self-receiver-03.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,35 +1,16 @@ | ||
error[E0637]: `&` without an explicit lifetime name cannot be used here | ||
--> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:34 | ||
| | ||
10 | pub fn constructor(this: &Self) -> Self { | ||
| ^ explicit lifetime name needed here | ||
|
||
error[E0411]: cannot find type `Self` in this scope | ||
--> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:35 | ||
| | ||
6 | pub struct Contract {} | ||
| --- `Self` not allowed in a constant item | ||
... | ||
10 | pub fn constructor(this: &Self) -> Self { | ||
| ^^^^ `Self` is only available in impls, traits, and type definitions | ||
|
||
error[E0411]: cannot find type `Self` in this scope | ||
--> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:35 | ||
error[E0106]: missing lifetime specifier | ||
--> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:34 | ||
| | ||
3 | #[ink::contract] | ||
| ---------------- `Self` not allowed in a function | ||
... | ||
10 | pub fn constructor(this: &Self) -> Self { | ||
| ^^^^ `Self` is only available in impls, traits, and type definitions | ||
|
||
error[E0277]: the trait bound `&'static Contract: WrapperTypeDecode` is not satisfied | ||
--> tests/ui/contract/fail/constructor-self-receiver-03.rs:10:9 | ||
| ^ expected named lifetime parameter | ||
| | ||
10 | pub fn constructor(this: &Self) -> Self { | ||
| ^^^ the trait `WrapperTypeDecode` is not implemented for `&'static Contract` | ||
help: consider introducing a named lifetime parameter | ||
| | ||
= help: the following other types implement trait `WrapperTypeDecode`: | ||
Arc<T> | ||
Box<T> | ||
Rc<T> | ||
= note: required because of the requirements on the impl of `parity_scale_codec::Decode` for `&'static Contract` | ||
10 | pub<'a> fn constructor(this: &'a Self) -> Self { | ||
| ++++ ++ |
20 changes: 10 additions & 10 deletions
20
crates/lang/tests/ui/contract/fail/event-too-many-topics-anonymous.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
20 changes: 10 additions & 10 deletions
20
crates/lang/tests/ui/contract/fail/event-too-many-topics.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
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
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
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
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