Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/rustdoc/const-generics/add-impl.rs
Normal file
17
tests/rustdoc/const-generics/add-impl.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
use std::ops::Add;
|
||||
|
||||
// @has foo/struct.Simd.html '//pre[@class="rust struct"]' 'pub struct Simd<T, const WIDTH: usize>'
|
||||
pub struct Simd<T, const WIDTH: usize> {
|
||||
inner: T,
|
||||
}
|
||||
|
||||
// @has foo/struct.Simd.html '//div[@id="trait-implementations-list"]//h3[@class="code-header"]' 'impl Add<Simd<u8, 16>> for Simd<u8, 16>'
|
||||
impl Add for Simd<u8, 16> {
|
||||
type Output = Self;
|
||||
|
||||
fn add(self, rhs: Self) -> Self::Output {
|
||||
Self { inner: 0 }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue