-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume traits used as type are trait objs
- Loading branch information
1 parent
f7c8928
commit 5082f90
Showing
42 changed files
with
359 additions
and
669 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
//@ edition:2021 | ||
|
||
trait Trait<const N: Trait = bar> { | ||
trait Trait<const N: dyn Trait = bar> { | ||
//~^ ERROR: cannot find value `bar` in this scope | ||
//~| ERROR: cycle detected when computing type of `Trait::N` | ||
//~| ERROR: the trait `Trait` cannot be made into an object | ||
//~| ERROR: the trait `Trait` cannot be made into an object | ||
//~| ERROR: the trait `Trait` cannot be made into an object | ||
//~| ERROR: trait objects must include the `dyn` keyword | ||
async fn a() {} | ||
} | ||
|
||
fn main() {} | ||
// TODO: GET BACK TO THIS!! |
Oops, something went wrong.