-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #83944 - jackh726:binder-refactor-fix2, r=lcnr
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
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
8 changes: 8 additions & 0 deletions
8
src/test/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// check-fail | ||
|
||
struct Foo {} | ||
impl Foo { | ||
fn bar(foo: Foo<Target = usize>) {} | ||
//~^ associated type bindings are not allowed here | ||
} | ||
fn main() {} |
9 changes: 9 additions & 0 deletions
9
src/test/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
error[E0229]: associated type bindings are not allowed here | ||
--> $DIR/issue-83753-invalid-associated-type-supertrait-hrtb.rs:5:21 | ||
| | ||
LL | fn bar(foo: Foo<Target = usize>) {} | ||
| ^^^^^^^^^^^^^^ associated type not allowed here | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0229`. |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// check-fail | ||
|
||
static STATIC_VAR_FIVE: &One(); | ||
//~^ cannot find type | ||
//~| free static item without body | ||
|
||
fn main() {} |
17 changes: 17 additions & 0 deletions
17
src/test/ui/lifetimes/issue-83907-invalid-fn-like-path.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
error: free static item without body | ||
--> $DIR/issue-83907-invalid-fn-like-path.rs:3:1 | ||
| | ||
LL | static STATIC_VAR_FIVE: &One(); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- | ||
| | | ||
| help: provide a definition for the static: `= <expr>;` | ||
|
||
error[E0412]: cannot find type `One` in this scope | ||
--> $DIR/issue-83907-invalid-fn-like-path.rs:3:26 | ||
| | ||
LL | static STATIC_VAR_FIVE: &One(); | ||
| ^^^ not found in this scope | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0412`. |