Comments (1)
I think this is right. According to https://doc.rust-lang.org/reference/items/linked-items.html, A
is a type alias.
And in impl T for ()
, theSelf
is ()
.
An example that is not good but passes inspection isοΌ
trait T{
type A;
fn f();
}
struct S(());
impl S {
fn new() -> Self {
S(())
}
}
impl T for (){
type A=S;
fn f(){
<Self as T>::A::new();
}
}
from rust.
Related Issues (20)
- Clean out old msys2/mingw stuff in CI HOT 10
- We should document what external dependencies we assume for our test suites
- Tracking issue for `-Zterminal-urls` HOT 2
- We should document more clearly env vars used between bootstrap <-> compiletest <-> test suites HOT 1
- Decide which methods to add to new `Range` types HOT 2
- error: --remap-path-prefix must contain '=' between FROM and TO because path contains spaces HOT 7
- Incorrectly suggests replacing end characters of function call with double quotes HOT 1
- The implementation `From<&[T; N]>` for `Option<&[T]>` seems missing HOT 2
- When a trait is missing items, there are many follow-up errors distracting from the root cause HOT 1
- When passing too many lifetimes to a struct, there are tons of unrelated errors about needing explicit lifetime annotations HOT 2
- Tracking Issue for `optimize_for_size` standard library feature HOT 5
- LazyCell, LazyLock are missing some big-picture documentation
- Audit usage of `command_output` methods in rmake.rs tests
- core::slice::sort::partial_insertion_sort: Redundant call to insertion_sort_shift_right HOT 2
- Excess object in `staticlib` archive eventually causing link error HOT 1
- Tracking Issue for `lazy_cell_consume` HOT 1
- Missed enum layout optimization depending on enum variant field reordering HOT 2
- binary operators hide "trait bounds not satisfied" errors
- Memcpy generated for Vec::push(Default::default()) instead of initialization in-place
- ICE: `expected region for ..` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.