-
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.
- Loading branch information
Showing
3 changed files
with
18 additions
and
11 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,3 @@ | ||
#![feature(trait_alias)] | ||
|
||
pub trait SomeAlias = std::fmt::Debug + std::marker::Copy; |
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,9 +1,10 @@ | ||
#![feature(trait_alias)] | ||
#![feature(ptr_metadata)] | ||
// aux-build:trait-alias-mention.rs | ||
// build-aux-docs | ||
|
||
#![crate_name = "foo"] | ||
|
||
// @has foo/fn.this_never_panics.html '//a[@title="traitalias core::ptr::metadata::Thin"]' 'Thin' | ||
pub fn this_never_panics<T: std::ptr::Thin>() { | ||
assert_eq!(std::mem::size_of::<&T>(), std::mem::size_of::<usize>()) | ||
extern crate trait_alias_mention; | ||
|
||
// @has foo/fn.mention_alias_in_bounds.html '//a[@href="../trait_alias_mention/traitalias.SomeAlias.html"]' 'SomeAlias' | ||
pub fn mention_alias_in_bounds<T: trait_alias_mention::SomeAlias>() { | ||
} |