-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes #102156.
- Loading branch information
Showing
3 changed files
with
35 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
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 @@ | ||
#![feature(allocator_api)] | ||
#![feature(const_trait_impl)] | ||
|
||
use core::convert::{From, TryFrom}; | ||
//~^ ERROR | ||
//~| ERROR | ||
|
||
use std::pin::Pin; | ||
use std::alloc::Allocator; | ||
impl<T: ?Sized, A: Allocator> const From<Box<T, A>> for Pin<Box<T, A>> | ||
where | ||
A: 'static, | ||
{} | ||
|
||
pub fn main() {} |
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,19 @@ | ||
error[E0433]: failed to resolve: maybe a missing crate `core`? | ||
--> $DIR/issue-102156.rs:4:5 | ||
| | ||
LL | use core::convert::{From, TryFrom}; | ||
| ^^^^ maybe a missing crate `core`? | ||
| | ||
= help: consider adding `extern crate core` to use the `core` crate | ||
|
||
error[E0433]: failed to resolve: maybe a missing crate `core`? | ||
--> $DIR/issue-102156.rs:4:5 | ||
| | ||
LL | use core::convert::{From, TryFrom}; | ||
| ^^^^ maybe a missing crate `core`? | ||
| | ||
= help: consider adding `extern crate core` to use the `core` crate | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0433`. |