forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
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 rust-lang#61189 - oli-obk:turbofish_ice, r=varkor
Turn turbo π π¨ into an error Master branch part of rust-lang#60989 r? @varkor
- Loading branch information
Showing
3 changed files
with
66 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
struct A {} | ||
struct B {} | ||
|
||
impl From<A> for B { | ||
fn from(a: A) -> B { | ||
B{} | ||
} | ||
} | ||
|
||
fn main() { | ||
let c1 = (); | ||
c1::<()>; | ||
//~^ ERROR type arguments are not allowed for this type | ||
|
||
let c1 = A {}; | ||
c1::<Into<B>>; | ||
//~^ ERROR type arguments are not allowed for this type | ||
} |
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,15 @@ | ||
error[E0109]: type arguments are not allowed for this type | ||
--> $DIR/issue-60989.rs:12:10 | ||
| | ||
LL | c1::<()>; | ||
| ^^ type argument not allowed | ||
|
||
error[E0109]: type arguments are not allowed for this type | ||
--> $DIR/issue-60989.rs:16:10 | ||
| | ||
LL | c1::<Into<B>>; | ||
| ^^^^^^^ type argument not allowed | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0109`. |