2018-08-08 12:28:26 +00:00
|
|
|
error[E0576]: cannot find associated type `N` in trait `Tr`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:19:24
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | type Y = u16;
|
|
|
|
| ------------- similarly named associated type `Y` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as Tr>::N;
|
2019-01-09 19:11:00 +00:00
|
|
|
| ^ help: an associated type with a similar name exists: `Y`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:20:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as E>::N;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found type alias `A`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:21:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as A>::N;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ type aliases cannot be used as traits
|
|
|
|
|
|
|
|
|
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
|
|
|
|
|
|
|
|
|
LL | trait A = u32;
|
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0576]: cannot find method or associated constant `N` in trait `Tr`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:22:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | fn Y() {}
|
2020-03-21 14:03:58 +00:00
|
|
|
| ------ similarly named associated function `Y` defined here
|
2019-10-15 00:20:50 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as Tr>::N;
|
2020-03-05 03:03:15 +00:00
|
|
|
| ^ help: an associated function with a similar name exists: `Y`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:23:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as E>::N;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found type alias `A`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:24:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as A>::N;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ type aliases cannot be used as traits
|
|
|
|
|
|
|
|
|
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
|
|
|
|
|
|
|
|
|
LL | trait A = u32;
|
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:26:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as E>::Y;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:28:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as E>::Y;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0576]: cannot find associated type `N` in trait `Tr`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:30:24
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | type Y = u16;
|
|
|
|
| ------------- similarly named associated type `Y` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as Tr>::N::NN;
|
2019-01-09 19:11:00 +00:00
|
|
|
| ^ help: an associated type with a similar name exists: `Y`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:31:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as E>::N::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found type alias `A`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:32:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as A>::N::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ type aliases cannot be used as traits
|
|
|
|
|
|
|
|
|
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
|
|
|
|
|
|
|
|
|
LL | trait A = u32;
|
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0576]: cannot find associated type `N` in trait `Tr`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:33:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | type Y = u16;
|
|
|
|
| ------------- similarly named associated type `Y` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as Tr>::N::NN;
|
2019-01-09 19:11:00 +00:00
|
|
|
| ^ help: an associated type with a similar name exists: `Y`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:34:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as E>::N::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found type alias `A`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:35:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as A>::N::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ type aliases cannot be used as traits
|
|
|
|
|
|
|
|
|
help: you might have meant to use `#![feature(trait_alias)]` instead of a `type` alias
|
|
|
|
|
|
|
|
|
LL | trait A = u32;
|
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:37:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as E>::Y::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:39:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as E>::Y::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ help: a trait with a similar name exists: `Eq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: similarly named trait `Eq` defined here
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0405]: cannot find trait `N` in trait `Tr`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:41:23
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as Tr::N>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ not found in `Tr`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0405]: cannot find trait `N` in enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:42:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as E::N>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ not found in `E`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0405]: cannot find trait `N` in `A`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:43:22
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as A::N>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ not found in `A`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0405]: cannot find trait `N` in trait `Tr`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:44:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as Tr::N>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ not found in `Tr`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0405]: cannot find trait `N` in enum `E`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:45:15
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as E::N>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ not found in `E`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0405]: cannot find trait `N` in `A`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:46:15
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as A::N>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^ not found in `A`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found associated type `Tr::Y`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:47:19
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as Tr::Y>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^^^^^ not a trait
|
|
|
|
|
|
|
|
error[E0404]: expected trait, found variant `E::Y`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:48:19
|
|
|
|
|
|
|
|
|
LL | let _: <u8 as E::Y>::NN;
|
|
|
|
| ^^^^ not a trait
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
error[E0404]: expected trait, found associated type `Tr::Y`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:49:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as Tr::Y>::NN;
|
2023-04-03 21:41:16 +00:00
|
|
|
| ^^^^^ not a trait
|
|
|
|
|
|
|
|
error[E0404]: expected trait, found variant `E::Y`
|
|
|
|
--> $DIR/ufcs-partially-resolved.rs:50:12
|
|
|
|
|
|
|
|
|
LL | <u8 as E::Y>::NN;
|
|
|
|
| ^^^^ not a trait
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-03-05 03:03:15 +00:00
|
|
|
error[E0575]: expected associated type, found associated function `Dr::Z`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:52:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | type X = u16;
|
|
|
|
| ------------- similarly named associated type `X` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as Dr>::Z;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^-
|
|
|
|
| |
|
2019-01-09 19:11:00 +00:00
|
|
|
| help: an associated type with a similar name exists: `X`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0575]: expected method or associated constant, found associated type `Dr::X`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:53:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | fn Z() {}
|
2020-03-21 14:03:58 +00:00
|
|
|
| ------ similarly named associated function `Z` defined here
|
2019-10-15 00:20:50 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as Dr>::X;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^-
|
|
|
|
| |
|
2020-03-05 03:03:15 +00:00
|
|
|
| help: an associated function with a similar name exists: `Z`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
= note: can't use a type alias as a constructor
|
|
|
|
|
2020-03-05 03:03:15 +00:00
|
|
|
error[E0575]: expected associated type, found associated function `Dr::Z`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:54:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | type X = u16;
|
|
|
|
| ------------- similarly named associated type `X` defined here
|
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as Dr>::Z::N;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^-^^^
|
|
|
|
| |
|
2019-01-09 19:11:00 +00:00
|
|
|
| help: an associated type with a similar name exists: `X`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error[E0223]: ambiguous associated type
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:36:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let _: <u8 as Tr>::Y::NN;
|
2023-01-08 06:54:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: if there were a trait named `Example` with associated type `NN` implemented for `<u8 as Tr>::Y`, you could use the fully-qualified path
|
|
|
|
|
|
|
|
|
LL | let _: <<u8 as Tr>::Y as Example>::NN;
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-06-13 19:36:15 +00:00
|
|
|
error[E0599]: no associated item named `NN` found for type `u16` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:38:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as Tr>::Y::NN;
|
2019-06-13 19:36:15 +00:00
|
|
|
| ^^ associated item not found in `u16`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-06-13 19:36:15 +00:00
|
|
|
error[E0599]: no associated item named `N` found for type `u16` in the current scope
|
2018-12-07 18:15:36 +00:00
|
|
|
--> $DIR/ufcs-partially-resolved.rs:55:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | <u8 as Dr>::X::N;
|
2019-06-13 19:36:15 +00:00
|
|
|
| ^ associated item not found in `u16`
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 32 previous errors
|
|
|
|
|
2023-04-03 21:41:16 +00:00
|
|
|
Some errors have detailed explanations: E0223, E0404, E0405, E0575, E0576, E0599.
|
2018-08-08 12:28:26 +00:00
|
|
|
For more information about an error, try `rustc --explain E0223`.
|