rust/tests/rustdoc-js/non-english-identifier.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1004 B
Rust
Raw Normal View History

2024-06-06 21:49:46 +00:00
#[doc(alias = "加法")]
pub fn add(left: usize, right: usize) -> usize {
left + right
}
pub fn API(left: usize, right: usize) -> usize {
left + right
}
#[macro_export]
macro_rules! {
($left:expr, $right:expr) => {
($left) + ($right)
};
}
#[doc(alias = "加法")]
#[macro_export]
macro_rules! add {
($left:expr, $right:expr) => {
($left) + ($right)
};
}
/// Add
pub trait <> {
type ;
fn (self, : ) -> Self::;
}
/// IntoIterator
pub trait {
type ;
type : Iterator<Item = Self::>;
fn (self) -> Self::;
}
pub type <> = Option<>;
/// "sum"
pub fn <, >(: ) -> <::>
where
: < = >,
: <, = >,
{
.().reduce(|, | .())
}