Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.13 KB | None | 0 0
  1. >>> src/test/ui/associated-type-bounds/bounds-on-assoc-in-trait.rs
  2.  
  3. error[E0316]: nested quantification of lifetimes
  4. --> src/test/ui/associated-type-bounds/bounds-on-assoc-in-trait.rs:67:41
  5. |
  6. 67 | for<'a> <_2 as Iterator>::Item: for<'b> Lam<&'a &'b u8, App = _0>,
  7. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  8.  
  9. error: aborting due to previous error
  10.  
  11. For more information about this error, try `rustc --explain E0316`.
  12. >>> src/test/ui/associated-type-bounds/duplicate.rs
  13.  
  14. error: expected item, found `;`
  15. --> src/test/ui/associated-type-bounds/duplicate.rs:151:57
  16. |
  17. 151 | struct SDyn1 { f: dyn Iterator<Item: Copy, Item: Send> };
  18. | ^ help: remove this semicolon
  19. |
  20. = help: braced struct declarations are not followed by a semicolon
  21.  
  22. error: expected item, found `;`
  23. --> src/test/ui/associated-type-bounds/duplicate.rs:153:62
  24. |
  25. 153 | struct SDyn2 { f: Box<dyn Iterator<Item: Copy, Item: Copy>> };
  26. | ^ help: remove this semicolon
  27. |
  28. = help: braced struct declarations are not followed by a semicolon
  29.  
  30. error: expected item, found `;`
  31. --> src/test/ui/associated-type-bounds/duplicate.rs:155:63
  32. |
  33. 155 | struct SDyn3 { f: dyn Iterator<Item: 'static, Item: 'static> };
  34. | ^ help: remove this semicolon
  35. |
  36. = help: braced struct declarations are not followed by a semicolon
  37.  
  38. error[E0428]: the name `ETAI1` is defined multiple times
  39. --> src/test/ui/associated-type-bounds/duplicate.rs:107:1
  40. |
  41. 101 | existential type ETAI1<T: Iterator<Item: Copy, Item: Send>>: Copy;
  42. | ------------------------------------------------------------------ previous definition of the type `ETAI1` here
  43. ...
  44. 107 | existential type ETAI1: Iterator<Item: Copy, Item: Send>;
  45. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ETAI1` redefined here
  46. |
  47. = note: `ETAI1` must be defined only once in the type namespace of this module
  48.  
  49. error[E0428]: the name `ETAI2` is defined multiple times
  50. --> src/test/ui/associated-type-bounds/duplicate.rs:109:1
  51. |
  52. 103 | existential type ETAI2<T: Iterator<Item: Copy, Item: Copy>>: Copy;
  53. | ------------------------------------------------------------------ previous definition of the type `ETAI2` here
  54. ...
  55. 109 | existential type ETAI2: Iterator<Item: Copy, Item: Copy>;
  56. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ETAI2` redefined here
  57. |
  58. = note: `ETAI2` must be defined only once in the type namespace of this module
  59.  
  60. error[E0428]: the name `ETAI3` is defined multiple times
  61. --> src/test/ui/associated-type-bounds/duplicate.rs:111:1
  62. |
  63. 105 | existential type ETAI3<T: Iterator<Item: 'static, Item: 'static>>: Copy;
  64. | ------------------------------------------------------------------------ previous definition of the type `ETAI3` here
  65. ...
  66. 111 | existential type ETAI3: Iterator<Item: 'static, Item: 'static>;
  67. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ETAI3` redefined here
  68. |
  69. = note: `ETAI3` must be defined only once in the type namespace of this module
  70.  
  71. error[E0658]: existential types are unstable (see issue #34511)
  72. --> src/test/ui/associated-type-bounds/duplicate.rs:101:1
  73. |
  74. 101 | existential type ETAI1<T: Iterator<Item: Copy, Item: Send>>: Copy;
  75. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  76. |
  77. = help: add #![feature(existential_type)] to the crate attributes to enable
  78.  
  79. error[E0658]: existential types are unstable (see issue #34511)
  80. --> src/test/ui/associated-type-bounds/duplicate.rs:103:1
  81. |
  82. 103 | existential type ETAI2<T: Iterator<Item: Copy, Item: Copy>>: Copy;
  83. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  84. |
  85. = help: add #![feature(existential_type)] to the crate attributes to enable
  86.  
  87. error[E0658]: existential types are unstable (see issue #34511)
  88. --> src/test/ui/associated-type-bounds/duplicate.rs:105:1
  89. |
  90. 105 | existential type ETAI3<T: Iterator<Item: 'static, Item: 'static>>: Copy;
  91. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  92. |
  93. = help: add #![feature(existential_type)] to the crate attributes to enable
  94.  
  95. error[E0658]: existential types are unstable (see issue #34511)
  96. --> src/test/ui/associated-type-bounds/duplicate.rs:107:1
  97. |
  98. 107 | existential type ETAI1: Iterator<Item: Copy, Item: Send>;
  99. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  100. |
  101. = help: add #![feature(existential_type)] to the crate attributes to enable
  102.  
  103. error[E0658]: existential types are unstable (see issue #34511)
  104. --> src/test/ui/associated-type-bounds/duplicate.rs:109:1
  105. |
  106. 109 | existential type ETAI2: Iterator<Item: Copy, Item: Copy>;
  107. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  108. |
  109. = help: add #![feature(existential_type)] to the crate attributes to enable
  110.  
  111. error[E0658]: existential types are unstable (see issue #34511)
  112. --> src/test/ui/associated-type-bounds/duplicate.rs:111:1
  113. |
  114. 111 | existential type ETAI3: Iterator<Item: 'static, Item: 'static>;
  115. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  116. |
  117. = help: add #![feature(existential_type)] to the crate attributes to enable
  118.  
  119. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  120. --> src/test/ui/associated-type-bounds/duplicate.rs:68:13
  121. |
  122. 68 | const CIT1: impl Iterator<Item: Copy, Item: Send> = ();
  123. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  124. |
  125. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  126.  
  127. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  128. --> src/test/ui/associated-type-bounds/duplicate.rs:70:13
  129. |
  130. 70 | const CIT2: impl Iterator<Item: Copy, Item: Copy> = ();
  131. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  132. |
  133. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  134.  
  135. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  136. --> src/test/ui/associated-type-bounds/duplicate.rs:72:13
  137. |
  138. 72 | const CIT3: impl Iterator<Item: 'static, Item: 'static> = ();
  139. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  140. |
  141. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  142.  
  143. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  144. --> src/test/ui/associated-type-bounds/duplicate.rs:74:14
  145. |
  146. 74 | static SIT1: impl Iterator<Item: Copy, Item: Send> = ();
  147. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  148. |
  149. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  150.  
  151. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  152. --> src/test/ui/associated-type-bounds/duplicate.rs:76:14
  153. |
  154. 76 | static SIT2: impl Iterator<Item: Copy, Item: Copy> = ();
  155. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  156. |
  157. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  158.  
  159. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  160. --> src/test/ui/associated-type-bounds/duplicate.rs:78:14
  161. |
  162. 78 | static SIT3: impl Iterator<Item: 'static, Item: 'static> = ();
  163. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  164. |
  165. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  166.  
  167. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  168. --> src/test/ui/associated-type-bounds/duplicate.rs:81:20
  169. |
  170. 81 | fn lit1() { let _: impl Iterator<Item: Copy, Item: Send> = (); }
  171. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  172. |
  173. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  174.  
  175. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  176. --> src/test/ui/associated-type-bounds/duplicate.rs:83:20
  177. |
  178. 83 | fn lit2() { let _: impl Iterator<Item: Copy, Item: Copy> = (); }
  179. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  180. |
  181. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  182.  
  183. error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
  184. --> src/test/ui/associated-type-bounds/duplicate.rs:85:20
  185. |
  186. 85 | fn lit3() { let _: impl Iterator<Item: 'static, Item: 'static> = (); }
  187. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  188. |
  189. = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
  190.  
  191. error[E0601]: `main` function not found in crate `duplicate`
  192. |
  193. = note: consider adding a `main` function to `src/test/ui/associated-type-bounds/duplicate.rs`
  194.  
  195. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  196. --> src/test/ui/associated-type-bounds/duplicate.rs:29:35
  197. |
  198. 29 | union UI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
  199. | ---------- ^^^^^^^^^^ re-bound here
  200. | |
  201. | `Item` bound here first
  202.  
  203. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  204. --> src/test/ui/associated-type-bounds/duplicate.rs:151:44
  205. |
  206. 151 | struct SDyn1 { f: dyn Iterator<Item: Copy, Item: Send> };
  207. | ---------- ^^^^^^^^^^ re-bound here
  208. | |
  209. | `Item` bound here first
  210.  
  211. error[E0191]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) must be specified
  212. --> src/test/ui/associated-type-bounds/duplicate.rs:151:19
  213. |
  214. 151 | struct SDyn1 { f: dyn Iterator<Item: Copy, Item: Send> };
  215. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Item` must be specified
  216.  
  217. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  218. --> src/test/ui/associated-type-bounds/duplicate.rs:153:48
  219. |
  220. 153 | struct SDyn2 { f: Box<dyn Iterator<Item: Copy, Item: Copy>> };
  221. | ---------- ^^^^^^^^^^ re-bound here
  222. | |
  223. | `Item` bound here first
  224.  
  225. error[E0191]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) must be specified
  226. --> src/test/ui/associated-type-bounds/duplicate.rs:153:23
  227. |
  228. 153 | struct SDyn2 { f: Box<dyn Iterator<Item: Copy, Item: Copy>> };
  229. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Item` must be specified
  230.  
  231. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  232. --> src/test/ui/associated-type-bounds/duplicate.rs:155:47
  233. |
  234. 155 | struct SDyn3 { f: dyn Iterator<Item: 'static, Item: 'static> };
  235. | ------------- ^^^^^^^^^^^^^ re-bound here
  236. | |
  237. | `Item` bound here first
  238.  
  239. error[E0191]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) must be specified
  240. --> src/test/ui/associated-type-bounds/duplicate.rs:155:19
  241. |
  242. 155 | struct SDyn3 { f: dyn Iterator<Item: 'static, Item: 'static> };
  243. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Item` must be specified
  244.  
  245. error[E0658]: unions with non-`Copy` fields are unstable (see issue #32836)
  246. --> src/test/ui/associated-type-bounds/duplicate.rs:29:1
  247. |
  248. 29 | union UI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
  249. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  250. |
  251. = help: add #![feature(untagged_unions)] to the crate attributes to enable
  252.  
  253. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  254. --> src/test/ui/associated-type-bounds/duplicate.rs:31:35
  255. |
  256. 31 | union UI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
  257. | ---------- ^^^^^^^^^^ re-bound here
  258. | |
  259. | `Item` bound here first
  260.  
  261. error[E0658]: unions with non-`Copy` fields are unstable (see issue #32836)
  262. --> src/test/ui/associated-type-bounds/duplicate.rs:31:1
  263. |
  264. 31 | union UI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
  265. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  266. |
  267. = help: add #![feature(untagged_unions)] to the crate attributes to enable
  268.  
  269. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  270. --> src/test/ui/associated-type-bounds/duplicate.rs:33:38
  271. |
  272. 33 | union UI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
  273. | ------------- ^^^^^^^^^^^^^ re-bound here
  274. | |
  275. | `Item` bound here first
  276.  
  277. error[E0658]: unions with non-`Copy` fields are unstable (see issue #32836)
  278. --> src/test/ui/associated-type-bounds/duplicate.rs:33:1
  279. |
  280. 33 | union UI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
  281. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  282. |
  283. = help: add #![feature(untagged_unions)] to the crate attributes to enable
  284.  
  285. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  286. --> src/test/ui/associated-type-bounds/duplicate.rs:35:44
  287. |
  288. 35 | union UW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
  289. | ---------- ^^^^^^^^^^ re-bound here
  290. | |
  291. | `Item` bound here first
  292.  
  293. error[E0658]: unions with non-`Copy` fields are unstable (see issue #32836)
  294. --> src/test/ui/associated-type-bounds/duplicate.rs:35:1
  295. |
  296. 35 | union UW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
  297. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  298. |
  299. = help: add #![feature(untagged_unions)] to the crate attributes to enable
  300.  
  301. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  302. --> src/test/ui/associated-type-bounds/duplicate.rs:37:44
  303. |
  304. 37 | union UW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
  305. | ---------- ^^^^^^^^^^ re-bound here
  306. | |
  307. | `Item` bound here first
  308.  
  309. error[E0658]: unions with non-`Copy` fields are unstable (see issue #32836)
  310. --> src/test/ui/associated-type-bounds/duplicate.rs:37:1
  311. |
  312. 37 | union UW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
  313. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  314. |
  315. = help: add #![feature(untagged_unions)] to the crate attributes to enable
  316.  
  317. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  318. --> src/test/ui/associated-type-bounds/duplicate.rs:39:47
  319. |
  320. 39 | union UW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
  321. | ------------- ^^^^^^^^^^^^^ re-bound here
  322. | |
  323. | `Item` bound here first
  324.  
  325. error[E0658]: unions with non-`Copy` fields are unstable (see issue #32836)
  326. --> src/test/ui/associated-type-bounds/duplicate.rs:39:1
  327. |
  328. 39 | union UW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
  329. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  330. |
  331. = help: add #![feature(untagged_unions)] to the crate attributes to enable
  332.  
  333. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  334. --> src/test/ui/associated-type-bounds/duplicate.rs:3:36
  335. |
  336. 3 | struct SI1<T: Iterator<Item: Copy, Item: Send>> { f: T }
  337. | ---------- ^^^^^^^^^^ re-bound here
  338. | |
  339. | `Item` bound here first
  340.  
  341. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  342. --> src/test/ui/associated-type-bounds/duplicate.rs:5:36
  343. |
  344. 5 | struct SI2<T: Iterator<Item: Copy, Item: Copy>> { f: T }
  345. | ---------- ^^^^^^^^^^ re-bound here
  346. | |
  347. | `Item` bound here first
  348.  
  349. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  350. --> src/test/ui/associated-type-bounds/duplicate.rs:7:39
  351. |
  352. 7 | struct SI3<T: Iterator<Item: 'static, Item: 'static>> { f: T }
  353. | ------------- ^^^^^^^^^^^^^ re-bound here
  354. | |
  355. | `Item` bound here first
  356.  
  357. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  358. --> src/test/ui/associated-type-bounds/duplicate.rs:9:45
  359. |
  360. 9 | struct SW1<T> where T: Iterator<Item: Copy, Item: Send> { f: T }
  361. | ---------- ^^^^^^^^^^ re-bound here
  362. | |
  363. | `Item` bound here first
  364.  
  365. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  366. --> src/test/ui/associated-type-bounds/duplicate.rs:11:45
  367. |
  368. 11 | struct SW2<T> where T: Iterator<Item: Copy, Item: Copy> { f: T }
  369. | ---------- ^^^^^^^^^^ re-bound here
  370. | |
  371. | `Item` bound here first
  372.  
  373. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  374. --> src/test/ui/associated-type-bounds/duplicate.rs:13:48
  375. |
  376. 13 | struct SW3<T> where T: Iterator<Item: 'static, Item: 'static> { f: T }
  377. | ------------- ^^^^^^^^^^^^^ re-bound here
  378. | |
  379. | `Item` bound here first
  380.  
  381. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  382. --> src/test/ui/associated-type-bounds/duplicate.rs:16:34
  383. |
  384. 16 | enum EI1<T: Iterator<Item: Copy, Item: Send>> { V(T) }
  385. | ---------- ^^^^^^^^^^ re-bound here
  386. | |
  387. | `Item` bound here first
  388.  
  389. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  390. --> src/test/ui/associated-type-bounds/duplicate.rs:18:34
  391. |
  392. 18 | enum EI2<T: Iterator<Item: Copy, Item: Copy>> { V(T) }
  393. | ---------- ^^^^^^^^^^ re-bound here
  394. | |
  395. | `Item` bound here first
  396.  
  397. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  398. --> src/test/ui/associated-type-bounds/duplicate.rs:20:37
  399. |
  400. 20 | enum EI3<T: Iterator<Item: 'static, Item: 'static>> { V(T) }
  401. | ------------- ^^^^^^^^^^^^^ re-bound here
  402. | |
  403. | `Item` bound here first
  404.  
  405. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  406. --> src/test/ui/associated-type-bounds/duplicate.rs:22:43
  407. |
  408. 22 | enum EW1<T> where T: Iterator<Item: Copy, Item: Send> { V(T) }
  409. | ---------- ^^^^^^^^^^ re-bound here
  410. | |
  411. | `Item` bound here first
  412.  
  413. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  414. --> src/test/ui/associated-type-bounds/duplicate.rs:24:43
  415. |
  416. 24 | enum EW2<T> where T: Iterator<Item: Copy, Item: Copy> { V(T) }
  417. | ---------- ^^^^^^^^^^ re-bound here
  418. | |
  419. | `Item` bound here first
  420.  
  421. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  422. --> src/test/ui/associated-type-bounds/duplicate.rs:26:46
  423. |
  424. 26 | enum EW3<T> where T: Iterator<Item: 'static, Item: 'static> { V(T) }
  425. | ------------- ^^^^^^^^^^^^^ re-bound here
  426. | |
  427. | `Item` bound here first
  428.  
  429. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  430. --> src/test/ui/associated-type-bounds/duplicate.rs:42:32
  431. |
  432. 42 | fn FI1<T: Iterator<Item: Copy, Item: Send>>() {}
  433. | ---------- ^^^^^^^^^^ re-bound here
  434. | |
  435. | `Item` bound here first
  436.  
  437. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  438. --> src/test/ui/associated-type-bounds/duplicate.rs:44:32
  439. |
  440. 44 | fn FI2<T: Iterator<Item: Copy, Item: Copy>>() {}
  441. | ---------- ^^^^^^^^^^ re-bound here
  442. | |
  443. | `Item` bound here first
  444.  
  445. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  446. --> src/test/ui/associated-type-bounds/duplicate.rs:46:35
  447. |
  448. 46 | fn FI3<T: Iterator<Item: 'static, Item: 'static>>() {}
  449. | ------------- ^^^^^^^^^^^^^ re-bound here
  450. | |
  451. | `Item` bound here first
  452.  
  453. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  454. --> src/test/ui/associated-type-bounds/duplicate.rs:48:43
  455. |
  456. 48 | fn FW1<T>() where T: Iterator<Item: Copy, Item: Send> {}
  457. | ---------- ^^^^^^^^^^ re-bound here
  458. | |
  459. | `Item` bound here first
  460.  
  461. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  462. --> src/test/ui/associated-type-bounds/duplicate.rs:50:43
  463. |
  464. 50 | fn FW2<T>() where T: Iterator<Item: Copy, Item: Copy> {}
  465. | ---------- ^^^^^^^^^^ re-bound here
  466. | |
  467. | `Item` bound here first
  468.  
  469. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  470. --> src/test/ui/associated-type-bounds/duplicate.rs:52:46
  471. |
  472. 52 | fn FW3<T>() where T: Iterator<Item: 'static, Item: 'static> {}
  473. | ------------- ^^^^^^^^^^^^^ re-bound here
  474. | |
  475. | `Item` bound here first
  476.  
  477. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  478. --> src/test/ui/associated-type-bounds/duplicate.rs:61:40
  479. |
  480. 61 | fn FAPIT1(_: impl Iterator<Item: Copy, Item: Send>) {}
  481. | ---------- ^^^^^^^^^^ re-bound here
  482. | |
  483. | `Item` bound here first
  484.  
  485. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  486. --> src/test/ui/associated-type-bounds/duplicate.rs:63:40
  487. |
  488. 63 | fn FAPIT2(_: impl Iterator<Item: Copy, Item: Copy>) {}
  489. | ---------- ^^^^^^^^^^ re-bound here
  490. | |
  491. | `Item` bound here first
  492.  
  493. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  494. --> src/test/ui/associated-type-bounds/duplicate.rs:65:43
  495. |
  496. 65 | fn FAPIT3(_: impl Iterator<Item: 'static, Item: 'static>) {}
  497. | ------------- ^^^^^^^^^^^^^ re-bound here
  498. | |
  499. | `Item` bound here first
  500.  
  501. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  502. --> src/test/ui/associated-type-bounds/duplicate.rs:88:35
  503. |
  504. 88 | type TAI1<T: Iterator<Item: Copy, Item: Send>> = T;
  505. | ---------- ^^^^^^^^^^ re-bound here
  506. | |
  507. | `Item` bound here first
  508.  
  509. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  510. --> src/test/ui/associated-type-bounds/duplicate.rs:90:35
  511. |
  512. 90 | type TAI2<T: Iterator<Item: Copy, Item: Copy>> = T;
  513. | ---------- ^^^^^^^^^^ re-bound here
  514. | |
  515. | `Item` bound here first
  516.  
  517. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  518. --> src/test/ui/associated-type-bounds/duplicate.rs:92:38
  519. |
  520. 92 | type TAI3<T: Iterator<Item: 'static, Item: 'static>> = T;
  521. | ------------- ^^^^^^^^^^^^^ re-bound here
  522. | |
  523. | `Item` bound here first
  524.  
  525. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  526. --> src/test/ui/associated-type-bounds/duplicate.rs:94:44
  527. |
  528. 94 | type TAW1<T> where T: Iterator<Item: Copy, Item: Send> = T;
  529. | ---------- ^^^^^^^^^^ re-bound here
  530. | |
  531. | `Item` bound here first
  532.  
  533. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  534. --> src/test/ui/associated-type-bounds/duplicate.rs:96:44
  535. |
  536. 96 | type TAW2<T> where T: Iterator<Item: Copy, Item: Copy> = T;
  537. | ---------- ^^^^^^^^^^ re-bound here
  538. | |
  539. | `Item` bound here first
  540.  
  541. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  542. --> src/test/ui/associated-type-bounds/duplicate.rs:98:47
  543. |
  544. 98 | type TAW3<T> where T: Iterator<Item: 'static, Item: 'static> = T;
  545. | ------------- ^^^^^^^^^^^^^ re-bound here
  546. | |
  547. | `Item` bound here first
  548.  
  549. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  550. --> src/test/ui/associated-type-bounds/duplicate.rs:55:42
  551. |
  552. 55 | fn FRPIT1() -> impl Iterator<Item: Copy, Item: Send> {}
  553. | ---------- ^^^^^^^^^^ re-bound here
  554. | |
  555. | `Item` bound here first
  556.  
  557. error[E0277]: `()` is not an iterator
  558. --> src/test/ui/associated-type-bounds/duplicate.rs:55:16
  559. |
  560. 55 | fn FRPIT1() -> impl Iterator<Item: Copy, Item: Send> {}
  561. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
  562. |
  563. = help: the trait `std::iter::Iterator` is not implemented for `()`
  564. = note: the return type of a function must have a statically known size
  565.  
  566. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  567. --> src/test/ui/associated-type-bounds/duplicate.rs:57:42
  568. |
  569. 57 | fn FRPIT2() -> impl Iterator<Item: Copy, Item: Copy> {}
  570. | ---------- ^^^^^^^^^^ re-bound here
  571. | |
  572. | `Item` bound here first
  573.  
  574. error[E0277]: `()` is not an iterator
  575. --> src/test/ui/associated-type-bounds/duplicate.rs:57:16
  576. |
  577. 57 | fn FRPIT2() -> impl Iterator<Item: Copy, Item: Copy> {}
  578. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
  579. |
  580. = help: the trait `std::iter::Iterator` is not implemented for `()`
  581. = note: the return type of a function must have a statically known size
  582.  
  583. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  584. --> src/test/ui/associated-type-bounds/duplicate.rs:59:45
  585. |
  586. 59 | fn FRPIT3() -> impl Iterator<Item: 'static, Item: 'static> {}
  587. | ------------- ^^^^^^^^^^^^^ re-bound here
  588. | |
  589. | `Item` bound here first
  590.  
  591. error[E0277]: `()` is not an iterator
  592. --> src/test/ui/associated-type-bounds/duplicate.rs:59:16
  593. |
  594. 59 | fn FRPIT3() -> impl Iterator<Item: 'static, Item: 'static> {}
  595. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
  596. |
  597. = help: the trait `std::iter::Iterator` is not implemented for `()`
  598. = note: the return type of a function must have a statically known size
  599.  
  600. error: could not find defining uses
  601. --> src/test/ui/associated-type-bounds/duplicate.rs:101:1
  602. |
  603. 101 | existential type ETAI1<T: Iterator<Item: Copy, Item: Send>>: Copy;
  604. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  605.  
  606. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  607. --> src/test/ui/associated-type-bounds/duplicate.rs:101:48
  608. |
  609. 101 | existential type ETAI1<T: Iterator<Item: Copy, Item: Send>>: Copy;
  610. | ---------- ^^^^^^^^^^ re-bound here
  611. | |
  612. | `Item` bound here first
  613.  
  614. error: could not find defining uses
  615. --> src/test/ui/associated-type-bounds/duplicate.rs:103:1
  616. |
  617. 103 | existential type ETAI2<T: Iterator<Item: Copy, Item: Copy>>: Copy;
  618. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  619.  
  620. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  621. --> src/test/ui/associated-type-bounds/duplicate.rs:103:48
  622. |
  623. 103 | existential type ETAI2<T: Iterator<Item: Copy, Item: Copy>>: Copy;
  624. | ---------- ^^^^^^^^^^ re-bound here
  625. | |
  626. | `Item` bound here first
  627.  
  628. error: could not find defining uses
  629. --> src/test/ui/associated-type-bounds/duplicate.rs:105:1
  630. |
  631. 105 | existential type ETAI3<T: Iterator<Item: 'static, Item: 'static>>: Copy;
  632. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  633.  
  634. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  635. --> src/test/ui/associated-type-bounds/duplicate.rs:105:51
  636. |
  637. 105 | existential type ETAI3<T: Iterator<Item: 'static, Item: 'static>>: Copy;
  638. | ------------- ^^^^^^^^^^^^^ re-bound here
  639. | |
  640. | `Item` bound here first
  641.  
  642. error: could not find defining uses
  643. --> src/test/ui/associated-type-bounds/duplicate.rs:107:1
  644. |
  645. 107 | existential type ETAI1: Iterator<Item: Copy, Item: Send>;
  646. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  647.  
  648. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  649. --> src/test/ui/associated-type-bounds/duplicate.rs:107:46
  650. |
  651. 107 | existential type ETAI1: Iterator<Item: Copy, Item: Send>;
  652. | ---------- ^^^^^^^^^^ re-bound here
  653. | |
  654. | `Item` bound here first
  655.  
  656. error: could not find defining uses
  657. --> src/test/ui/associated-type-bounds/duplicate.rs:109:1
  658. |
  659. 109 | existential type ETAI2: Iterator<Item: Copy, Item: Copy>;
  660. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  661.  
  662. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  663. --> src/test/ui/associated-type-bounds/duplicate.rs:109:46
  664. |
  665. 109 | existential type ETAI2: Iterator<Item: Copy, Item: Copy>;
  666. | ---------- ^^^^^^^^^^ re-bound here
  667. | |
  668. | `Item` bound here first
  669.  
  670. error: could not find defining uses
  671. --> src/test/ui/associated-type-bounds/duplicate.rs:111:1
  672. |
  673. 111 | existential type ETAI3: Iterator<Item: 'static, Item: 'static>;
  674. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  675.  
  676. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  677. --> src/test/ui/associated-type-bounds/duplicate.rs:111:49
  678. |
  679. 111 | existential type ETAI3: Iterator<Item: 'static, Item: 'static>;
  680. | ------------- ^^^^^^^^^^^^^ re-bound here
  681. | |
  682. | `Item` bound here first
  683.  
  684. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  685. --> src/test/ui/associated-type-bounds/duplicate.rs:114:36
  686. |
  687. 114 | trait TRI1<T: Iterator<Item: Copy, Item: Send>> {}
  688. | ---------- ^^^^^^^^^^ re-bound here
  689. | |
  690. | `Item` bound here first
  691.  
  692. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  693. --> src/test/ui/associated-type-bounds/duplicate.rs:116:36
  694. |
  695. 116 | trait TRI2<T: Iterator<Item: Copy, Item: Copy>> {}
  696. | ---------- ^^^^^^^^^^ re-bound here
  697. | |
  698. | `Item` bound here first
  699.  
  700. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  701. --> src/test/ui/associated-type-bounds/duplicate.rs:118:39
  702. |
  703. 118 | trait TRI3<T: Iterator<Item: 'static, Item: 'static>> {}
  704. | ------------- ^^^^^^^^^^^^^ re-bound here
  705. | |
  706. | `Item` bound here first
  707.  
  708. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  709. --> src/test/ui/associated-type-bounds/duplicate.rs:120:34
  710. |
  711. 120 | trait TRS1: Iterator<Item: Copy, Item: Send> {}
  712. | ---------- ^^^^^^^^^^ re-bound here
  713. | |
  714. | `Item` bound here first
  715.  
  716. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  717. --> src/test/ui/associated-type-bounds/duplicate.rs:122:34
  718. |
  719. 122 | trait TRS2: Iterator<Item: Copy, Item: Copy> {}
  720. | ---------- ^^^^^^^^^^ re-bound here
  721. | |
  722. | `Item` bound here first
  723.  
  724. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  725. --> src/test/ui/associated-type-bounds/duplicate.rs:124:37
  726. |
  727. 124 | trait TRS3: Iterator<Item: 'static, Item: 'static> {}
  728. | ------------- ^^^^^^^^^^^^^ re-bound here
  729. | |
  730. | `Item` bound here first
  731.  
  732. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  733. --> src/test/ui/associated-type-bounds/duplicate.rs:126:45
  734. |
  735. 126 | trait TRW1<T> where T: Iterator<Item: Copy, Item: Send> {}
  736. | ---------- ^^^^^^^^^^ re-bound here
  737. | |
  738. | `Item` bound here first
  739.  
  740. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  741. --> src/test/ui/associated-type-bounds/duplicate.rs:128:45
  742. |
  743. 128 | trait TRW2<T> where T: Iterator<Item: Copy, Item: Copy> {}
  744. | ---------- ^^^^^^^^^^ re-bound here
  745. | |
  746. | `Item` bound here first
  747.  
  748. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  749. --> src/test/ui/associated-type-bounds/duplicate.rs:130:48
  750. |
  751. 130 | trait TRW3<T> where T: Iterator<Item: 'static, Item: 'static> {}
  752. | ------------- ^^^^^^^^^^^^^ re-bound here
  753. | |
  754. | `Item` bound here first
  755.  
  756. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  757. --> src/test/ui/associated-type-bounds/duplicate.rs:132:46
  758. |
  759. 132 | trait TRSW1 where Self: Iterator<Item: Copy, Item: Send> {}
  760. | ---------- ^^^^^^^^^^ re-bound here
  761. | |
  762. | `Item` bound here first
  763.  
  764. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  765. --> src/test/ui/associated-type-bounds/duplicate.rs:134:46
  766. |
  767. 134 | trait TRSW2 where Self: Iterator<Item: Copy, Item: Copy> {}
  768. | ---------- ^^^^^^^^^^ re-bound here
  769. | |
  770. | `Item` bound here first
  771.  
  772. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  773. --> src/test/ui/associated-type-bounds/duplicate.rs:136:49
  774. |
  775. 136 | trait TRSW3 where Self: Iterator<Item: 'static, Item: 'static> {}
  776. | ------------- ^^^^^^^^^^^^^ re-bound here
  777. | |
  778. | `Item` bound here first
  779.  
  780. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  781. --> src/test/ui/associated-type-bounds/duplicate.rs:138:43
  782. |
  783. 138 | trait TRA1 { type A: Iterator<Item: Copy, Item: Send>; }
  784. | ---------- ^^^^^^^^^^ re-bound here
  785. | |
  786. | `Item` bound here first
  787.  
  788. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  789. --> src/test/ui/associated-type-bounds/duplicate.rs:140:43
  790. |
  791. 140 | trait TRA2 { type A: Iterator<Item: Copy, Item: Copy>; }
  792. | ---------- ^^^^^^^^^^ re-bound here
  793. | |
  794. | `Item` bound here first
  795.  
  796. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  797. --> src/test/ui/associated-type-bounds/duplicate.rs:142:46
  798. |
  799. 142 | trait TRA3 { type A: Iterator<Item: 'static, Item: 'static>; }
  800. | ------------- ^^^^^^^^^^^^^ re-bound here
  801. | |
  802. | `Item` bound here first
  803.  
  804. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  805. --> src/test/ui/associated-type-bounds/duplicate.rs:145:40
  806. |
  807. 145 | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
  808. | ---------- ^^^^^^^^^^ re-bound here
  809. | |
  810. | `Item` bound here first
  811.  
  812. error[E0191]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) must be specified
  813. --> src/test/ui/associated-type-bounds/duplicate.rs:145:15
  814. |
  815. 145 | type TADyn1 = dyn Iterator<Item: Copy, Item: Send>;
  816. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Item` must be specified
  817.  
  818. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  819. --> src/test/ui/associated-type-bounds/duplicate.rs:147:44
  820. |
  821. 147 | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
  822. | ---------- ^^^^^^^^^^ re-bound here
  823. | |
  824. | `Item` bound here first
  825.  
  826. error[E0191]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) must be specified
  827. --> src/test/ui/associated-type-bounds/duplicate.rs:147:19
  828. |
  829. 147 | type TADyn2 = Box<dyn Iterator<Item: Copy, Item: Copy>>;
  830. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Item` must be specified
  831.  
  832. error[E0719]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) is already specified
  833. --> src/test/ui/associated-type-bounds/duplicate.rs:149:43
  834. |
  835. 149 | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
  836. | ------------- ^^^^^^^^^^^^^ re-bound here
  837. | |
  838. | `Item` bound here first
  839.  
  840. error[E0191]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) must be specified
  841. --> src/test/ui/associated-type-bounds/duplicate.rs:149:15
  842. |
  843. 149 | type TADyn3 = dyn Iterator<Item: 'static, Item: 'static>;
  844. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Item` must be specified
  845.  
  846. error: could not find defining uses
  847.  
  848. error: could not find defining uses
  849.  
  850. error: could not find defining uses
  851.  
  852. error: could not find defining uses
  853.  
  854. error: could not find defining uses
  855.  
  856. error: could not find defining uses
  857.  
  858. error: could not find defining uses
  859.  
  860. error: could not find defining uses
  861.  
  862. error: could not find defining uses
  863.  
  864. error: could not find defining uses
  865.  
  866. error: could not find defining uses
  867.  
  868. error: could not find defining uses
  869.  
  870. error: aborting due to 118 previous errors
  871.  
  872. Some errors occurred: E0191, E0277, E0428, E0562, E0601, E0658, E0719.
  873. For more information about an error, try `rustc --explain E0191`.
  874. >>> src/test/ui/associated-type-bounds/dyn-existential-type.rs
  875.  
  876. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  877. --> src/test/ui/associated-type-bounds/dyn-existential-type.rs:19:16
  878. |
  879. 7 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  880. | --------- `As1` defined here
  881. ...
  882. 19 | type Et1 = Box<dyn Tr1<As1: Copy>>;
  883. | ^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  884.  
  885. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  886. --> src/test/ui/associated-type-bounds/dyn-existential-type.rs:23:16
  887. |
  888. 7 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  889. | --------- `As1` defined here
  890. ...
  891. 23 | type Et2 = Box<dyn Tr1<As1: 'static>>;
  892. | ^^^^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  893.  
  894. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  895. --> src/test/ui/associated-type-bounds/dyn-existential-type.rs:27:16
  896. |
  897. 7 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  898. | --------- `As1` defined here
  899. ...
  900. 27 | type Et3 = Box<dyn Tr1<As1: Clone + Iterator<Item: Add<u8, Output: Into<u8>>>>>;
  901. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  902.  
  903. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  904. --> src/test/ui/associated-type-bounds/dyn-existential-type.rs:46:16
  905. |
  906. 7 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  907. | --------- `As1` defined here
  908. ...
  909. 46 | type Et4 = Box<dyn Tr1<As1: for<'a> Tr2<'a>>>;
  910. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  911.  
  912. error: aborting due to 4 previous errors
  913.  
  914. For more information about this error, try `rustc --explain E0191`.
  915. >>> src/test/ui/associated-type-bounds/dyn-lcsit.rs
  916.  
  917. >>> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs
  918.  
  919. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  920. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:18:16
  921. |
  922. 5 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  923. | --------- `As1` defined here
  924. ...
  925. 18 | let x: Box<dyn Tr1<As1: Copy>> = Box::new(S1);
  926. | ^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  927.  
  928. error[E0308]: mismatched types
  929. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:19:5
  930. |
  931. 19 | x
  932. | ^ expected trait `Tr1<As1 = _>`, found trait `Tr1`
  933. |
  934. = note: expected type `std::boxed::Box<(dyn Tr1<As1 = _> + 'static)>`
  935. found type `std::boxed::Box<dyn Tr1>`
  936.  
  937. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  938. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:24:16
  939. |
  940. 5 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  941. | --------- `As1` defined here
  942. ...
  943. 24 | let x: Box<dyn Tr1<As1: Send + 'static>> = Box::new(S1);
  944. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  945.  
  946. error[E0308]: mismatched types
  947. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:25:5
  948. |
  949. 25 | x
  950. | ^ expected trait `Tr1<As1 = _>`, found trait `Tr1`
  951. |
  952. = note: expected type `std::boxed::Box<(dyn Tr1<As1 = _> + 'static)>`
  953. found type `std::boxed::Box<dyn Tr1>`
  954.  
  955. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  956. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:35:16
  957. |
  958. 5 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  959. | --------- `As1` defined here
  960. ...
  961. 35 | let x: Box<dyn Tr1<As1: Clone + Iterator<Item: Add<u8, Output: Into<u8>>>>> = Box::new(A);
  962. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  963.  
  964. error[E0308]: mismatched types
  965. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:36:5
  966. |
  967. 36 | x
  968. | ^ expected trait `Tr1<As1 = _>`, found trait `Tr1`
  969. |
  970. = note: expected type `std::boxed::Box<(dyn Tr1<As1 = _> + 'static)>`
  971. found type `std::boxed::Box<dyn Tr1>`
  972.  
  973. error[E0191]: the value of the associated type `As1` (from the trait `Tr1`) must be specified
  974. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:58:16
  975. |
  976. 5 | trait Tr1 { type As1; fn mk(&self) -> Self::As1; }
  977. | --------- `As1` defined here
  978. ...
  979. 58 | let x: Box<dyn Tr1<As1: for<'a> Tr2<'a>>> = Box::new(A);
  980. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `As1` must be specified
  981.  
  982. error[E0308]: mismatched types
  983. --> src/test/ui/associated-type-bounds/dyn-rpit-and-let.rs:59:5
  984. |
  985. 59 | x
  986. | ^ expected trait `Tr1<As1 = _>`, found trait `Tr1`
  987. |
  988. = note: expected type `std::boxed::Box<(dyn Tr1<As1 = _> + 'static)>`
  989. found type `std::boxed::Box<dyn Tr1>`
  990.  
  991. error: aborting due to 8 previous errors
  992.  
  993. Some errors occurred: E0191, E0308.
  994. For more information about an error, try `rustc --explain E0191`.
  995. >>> src/test/ui/associated-type-bounds/entails-sized-object-safety.rs
  996.  
  997. error[E0220]: associated type `As2` not found for `Tr2<'a>`
  998. --> src/test/ui/associated-type-bounds/entails-sized-object-safety.rs:21:70
  999. |
  1000. 21 | trait ObjTr6 { fn foo() -> Self where Self: for<'a> Tr1<As1: Tr2<'a, As2: for<'b> Tr2<'b>>>; }
  1001. | ^^^^^^^^^^^^^^^^^^^^ associated type `As2` not found
  1002.  
  1003. error: aborting due to previous error
  1004.  
  1005. For more information about this error, try `rustc --explain E0220`.
  1006. >>> src/test/ui/associated-type-bounds/enum-bounds.rs
  1007.  
  1008. >>> src/test/ui/associated-type-bounds/existential-type.rs
  1009.  
  1010. >>> src/test/ui/associated-type-bounds/fn-apit.rs
  1011.  
  1012. warning: unused variable: `gamma`
  1013. --> src/test/ui/associated-type-bounds/fn-apit.rs:48:9
  1014. |
  1015. 48 | let gamma = beta.gamma();
  1016. | ^^^^^ help: consider prefixing with an underscore: `_gamma`
  1017. |
  1018. = note: #[warn(unused_variables)] on by default
  1019.  
  1020. warning: function is never used: `assert_forall_epsilon_zeta_satisfies_eta`
  1021. --> src/test/ui/associated-type-bounds/fn-aux.rs:36:1
  1022. |
  1023. 36 | / pub fn assert_forall_epsilon_zeta_satisfies_eta<T>(x: T) -> usize
  1024. 37 | | where
  1025. 38 | | T: for<'a> Epsilon<'a>,
  1026. 39 | | for<'a> <T as Epsilon<'a>>::Zeta: Eta,
  1027. 40 | | {
  1028. 41 | | x.epsilon() + x.zeta().eta()
  1029. 42 | | }
  1030. | |_^
  1031. |
  1032. = note: #[warn(dead_code)] on by default
  1033.  
  1034. warning: function is never used: `desugared_bound_region_specific`
  1035. --> src/test/ui/associated-type-bounds/fn-aux.rs:118:1
  1036. |
  1037. 118 | / pub fn desugared_bound_region_specific<'a, B>(gamma: &'a B::Gamma) -> usize
  1038. 119 | | where
  1039. 120 | | B: Beta,
  1040. 121 | | B::Gamma: 'a + Epsilon<'a>,
  1041. 122 | | {
  1042. 123 | | assert_epsilon_specific::<B::Gamma>(gamma)
  1043. 124 | | }
  1044. | |_^
  1045.  
  1046. warning: function is never used: `desugared_bound_region_forall2`
  1047. --> src/test/ui/associated-type-bounds/fn-aux.rs:138:1
  1048. |
  1049. 138 | / pub fn desugared_bound_region_forall2<B>(beta: B) -> usize
  1050. 139 | | where
  1051. 140 | | B: Beta,
  1052. 141 | | B::Gamma: Copy + for<'a> Epsilon<'a>,
  1053. ... |
  1054. 145 | | assert_forall_epsilon_zeta_satisfies_eta::<B::Gamma>(gamma)
  1055. 146 | | }
  1056. | |_^
  1057.  
  1058. warning: function is never used: `desugared_contraint_region_forall`
  1059. --> src/test/ui/associated-type-bounds/fn-aux.rs:148:1
  1060. |
  1061. 148 | / pub fn desugared_contraint_region_forall<B>(beta: B) -> usize
  1062. 149 | | where
  1063. 150 | | for<'a> &'a B: Beta,
  1064. 151 | | for<'a> <&'a B as Beta>::Gamma: Alpha,
  1065. ... |
  1066. 155 | | assert_alpha(g1) + assert_alpha(g2)
  1067. 156 | | }
  1068. | |_^
  1069.  
  1070. warning: function is never used: `desugared`
  1071. --> src/test/ui/associated-type-bounds/fn-aux.rs:169:1
  1072. |
  1073. 169 | pub fn desugared() {
  1074. | ^^^^^^^^^^^^^^^^^^
  1075.  
  1076. warning: function is never used: `main`
  1077. --> src/test/ui/associated-type-bounds/fn-aux.rs:183:1
  1078. |
  1079. 183 | fn main() {
  1080. | ^^^^^^^^^
  1081.  
  1082. warning: function is never used: `apit_bound_region_forall2`
  1083. --> src/test/ui/associated-type-bounds/fn-apit.rs:28:1
  1084. |
  1085. 28 | / fn apit_bound_region_forall2(
  1086. 29 | | beta: impl Beta<Gamma: Copy + for<'a> Epsilon<'a, Zeta: Eta>>
  1087. 30 | | ) -> usize {
  1088. 31 | | desugared_bound_region_forall2(beta)
  1089. 32 | | }
  1090. | |_^
  1091.  
  1092. >>> src/test/ui/associated-type-bounds/fn-aux.rs
  1093.  
  1094. >>> src/test/ui/associated-type-bounds/fn-dyn-apit.rs
  1095.  
  1096. error: ambiguous `+` in a type
  1097. --> src/test/ui/associated-type-bounds/fn-dyn-apit.rs:19:12
  1098. |
  1099. 19 | beta: &dyn Copy + Beta<Gamma: Alpha + 'static + Delta>
  1100. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use parentheses to disambiguate: `(dyn Copy + Beta<Gamma : Alpha + 'static + Delta>)`
  1101.  
  1102. error[E0191]: the value of the associated type `Gamma` (from the trait `fn_aux::Beta`) must be specified
  1103. --> src/test/ui/associated-type-bounds/fn-dyn-apit.rs:10:26
  1104. |
  1105. 10 | fn dyn_apit_bound(beta: &dyn Beta<Gamma: Alpha>) -> usize {
  1106. | ^^^^^^^^^^^^^^^^^^^^^^ associated type `Gamma` must be specified
  1107. |
  1108. ::: src/test/ui/associated-type-bounds/fn-aux.rs:10:5
  1109. |
  1110. 10 | type Gamma;
  1111. | ----------- `Gamma` defined here
  1112.  
  1113. error[E0191]: the value of the associated type `Gamma` (from the trait `fn_aux::Beta`) must be specified
  1114. --> src/test/ui/associated-type-bounds/fn-dyn-apit.rs:14:33
  1115. |
  1116. 14 | fn dyn_apit_bound_region(beta: &dyn Beta<Gamma: 'static>) -> usize {
  1117. | ^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Gamma` must be specified
  1118. |
  1119. ::: src/test/ui/associated-type-bounds/fn-aux.rs:10:5
  1120. |
  1121. 10 | type Gamma;
  1122. | ----------- `Gamma` defined here
  1123.  
  1124. error[E0225]: only auto traits can be used as additional traits in a trait object
  1125. --> src/test/ui/associated-type-bounds/fn-dyn-apit.rs:19:23
  1126. |
  1127. 19 | beta: &dyn Copy + Beta<Gamma: Alpha + 'static + Delta>
  1128. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ non-auto additional trait
  1129.  
  1130. error[E0191]: the value of the associated type `Gamma` (from the trait `fn_aux::Beta`) must be specified
  1131. --> src/test/ui/associated-type-bounds/fn-dyn-apit.rs:25:12
  1132. |
  1133. 25 | beta: &dyn Beta<Gamma: Copy + for<'a> Epsilon<'a>>
  1134. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Gamma` must be specified
  1135. |
  1136. ::: src/test/ui/associated-type-bounds/fn-aux.rs:10:5
  1137. |
  1138. 10 | type Gamma;
  1139. | ----------- `Gamma` defined here
  1140.  
  1141. error[E0191]: the value of the associated type `Gamma` (from the trait `fn_aux::Beta`) must be specified
  1142. --> src/test/ui/associated-type-bounds/fn-dyn-apit.rs:31:12
  1143. |
  1144. 31 | beta: &dyn Beta<Gamma: Copy + for<'a> Epsilon<'a, Zeta: Eta>>
  1145. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Gamma` must be specified
  1146. |
  1147. ::: src/test/ui/associated-type-bounds/fn-aux.rs:10:5
  1148. |
  1149. 10 | type Gamma;
  1150. | ----------- `Gamma` defined here
  1151.  
  1152. error[E0191]: the value of the associated type `Gamma` (from the trait `fn_aux::Beta`) must be specified
  1153. --> src/test/ui/associated-type-bounds/fn-dyn-apit.rs:37:12
  1154. |
  1155. 37 | beta: &dyn Beta<Gamma: Copy + Alpha + Beta<Gamma: Delta>>
  1156. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Gamma` must be specified
  1157. |
  1158. ::: src/test/ui/associated-type-bounds/fn-aux.rs:10:5
  1159. |
  1160. 10 | type Gamma;
  1161. | ----------- `Gamma` defined here
  1162.  
  1163. error: aborting due to 7 previous errors
  1164.  
  1165. Some errors occurred: E0191, E0225.
  1166. For more information about an error, try `rustc --explain E0191`.
  1167. >>> src/test/ui/associated-type-bounds/fn-inline.rs
  1168.  
  1169. error[E0601]: `main` function not found in crate `fn_inline`
  1170. |
  1171. = note: the main function must be defined at the crate level but you have one or more functions named 'main' that are not defined at the crate level. Either move the definition or attach the `#[main]` attribute to override this behavior.
  1172. note: here is a function named 'main'
  1173. --> src/test/ui/associated-type-bounds/fn-aux.rs:183:1
  1174. |
  1175. 18| / fn main() {
  1176. 18| | desugared();
  1177. 18| | }
  1178. | |_^
  1179.  
  1180. error: aborting due to previous error
  1181.  
  1182. For more information about this error, try `rustc --explain E0601`.
  1183. >>> src/test/ui/associated-type-bounds/fn-wheres.rs
  1184.  
  1185. error[E0284]: type annotations required: cannot resolve `<_ as fn_aux::Beta>::Gamma == _`
  1186. --> src/test/ui/associated-type-bounds/fn-wheres.rs:35:5
  1187. |
  1188. 35 | desugared_bound_region_specific(gamma)
  1189. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1190.  
  1191. error: aborting due to previous error
  1192.  
  1193. For more information about this error, try `rustc --explain E0284`.
  1194. >>> src/test/ui/associated-type-bounds/fn-wrap-apit.rs
  1195.  
  1196. error[E0308]: mismatched types
  1197. --> src/test/ui/associated-type-bounds/fn-wrap-apit.rs:54:36
  1198. |
  1199. 54 | assert_eq!(42, wrap_apit_bound(beta));
  1200. | ^^^^ expected struct `Wrap`, found struct `fn_aux::BetaType`
  1201. |
  1202. = note: expected type `Wrap<_>`
  1203. found type `fn_aux::BetaType`
  1204.  
  1205. error[E0308]: mismatched types
  1206. --> src/test/ui/associated-type-bounds/fn-wrap-apit.rs:55:43
  1207. |
  1208. 55 | assert_eq!(24, wrap_apit_bound_region(beta));
  1209. | ^^^^ expected struct `Wrap`, found struct `fn_aux::BetaType`
  1210. |
  1211. = note: expected type `Wrap<_>`
  1212. found type `fn_aux::BetaType`
  1213.  
  1214. error[E0308]: mismatched types
  1215. --> src/test/ui/associated-type-bounds/fn-wrap-apit.rs:56:54
  1216. |
  1217. 56 | assert_eq!(42 + 24 + 1337, wrap_apit_bound_multi(beta));
  1218. | ^^^^ expected struct `Wrap`, found struct `fn_aux::BetaType`
  1219. |
  1220. = note: expected type `Wrap<_>`
  1221. found type `fn_aux::BetaType`
  1222.  
  1223. error[E0308]: mismatched types
  1224. --> src/test/ui/associated-type-bounds/fn-wrap-apit.rs:57:56
  1225. |
  1226. 57 | assert_eq!(7331 * 2, wrap_apit_bound_region_forall(beta));
  1227. | ^^^^ expected struct `Wrap`, found struct `fn_aux::BetaType`
  1228. |
  1229. = note: expected type `Wrap<_>`
  1230. found type `fn_aux::BetaType`
  1231.  
  1232. error[E0308]: mismatched types
  1233. --> src/test/ui/associated-type-bounds/fn-wrap-apit.rs:58:50
  1234. |
  1235. 58 | assert_eq!(42 + 1337, wrap_apit_bound_nested(beta));
  1236. | ^^^^ expected struct `Wrap`, found struct `fn_aux::BetaType`
  1237. |
  1238. = note: expected type `Wrap<_>`
  1239. found type `fn_aux::BetaType`
  1240.  
  1241. error[E0308]: mismatched types
  1242. --> src/test/ui/associated-type-bounds/fn-wrap-apit.rs:59:51
  1243. |
  1244. 59 | assert_eq!(42 + 1337, wrap_apit_bound_nested2(beta));
  1245. | ^^^^ expected struct `Wrap`, found struct `fn_aux::BetaType`
  1246. |
  1247. = note: expected type `Wrap<_>`
  1248. found type `fn_aux::BetaType`
  1249.  
  1250. error: aborting due to 6 previous errors
  1251.  
  1252. For more information about this error, try `rustc --explain E0308`.
  1253. >>> src/test/ui/associated-type-bounds/implied-region-constraints.rs
  1254.  
  1255. error[E0601]: `main` function not found in crate `implied_region_constraints`
  1256. |
  1257. = note: consider adding a `main` function to `src/test/ui/associated-type-bounds/implied-region-constraints.rs`
  1258.  
  1259. error[E0623]: lifetime mismatch
  1260. --> src/test/ui/associated-type-bounds/implied-region-constraints.rs:17:64
  1261. |
  1262. 11 | fn _bad_st<'a, 'b, T>(x: St<'a, 'b, T>)
  1263. | -------------
  1264. | |
  1265. | this type is declared with multiple lifetimes...
  1266. ...
  1267. 17 | let _failure_proves_not_implied_outlives_region_b: &'b T = &x.f0; // error[E0623]: lifetime mismatch
  1268. | ^^^^^ ...but data with one lifetime flows into the other here
  1269.  
  1270. error[E0623]: lifetime mismatch
  1271. --> src/test/ui/associated-type-bounds/implied-region-constraints.rs:37:72
  1272. |
  1273. 29 | fn _bad_en7<'a, 'b, T>(x: En7<'a, 'b, T>)
  1274. | --------------
  1275. | |
  1276. | this type is declared with multiple lifetimes...
  1277. ...
  1278. 37 | let _failure_proves_not_implied_outlives_region_b: &'b T = &x; // error[E0623]: lifetime mismatch
  1279. | ^^ ...but data with one lifetime flows into the other here
  1280.  
  1281. error: aborting due to 3 previous errors
  1282.  
  1283. Some errors occurred: E0601, E0623.
  1284. For more information about an error, try `rustc --explain E0601`.
  1285. >>> src/test/ui/associated-type-bounds/lcsit.rs
  1286.  
  1287. >>> src/test/ui/associated-type-bounds/rpit.rs
  1288.  
  1289. >>> src/test/ui/associated-type-bounds/struct-bounds.rs
  1290.  
  1291. warning: function is never used: `unwrap_2_st1`
  1292. --> src/test/ui/associated-type-bounds/struct-bounds.rs:26:1
  1293. |
  1294. 26 | / fn unwrap_2_st1<T>(x: St1<T>) -> (T, T::As1, <T::As1 as Tr2>::As2)
  1295. 27 | | where
  1296. 28 | | T: Tr1,
  1297. 29 | | T::As1: Tr2,
  1298. 30 | | {
  1299. 31 | | unwrap_1_st1(x)
  1300. 32 | | }
  1301. | |_^
  1302. |
  1303. = note: #[warn(dead_code)] on by default
  1304.  
  1305. warning: field is never used: `outest`
  1306. --> src/test/ui/associated-type-bounds/struct-bounds.rs:35:5
  1307. |
  1308. 35 | outest: T,
  1309. | ^^^^^^^^^
  1310.  
  1311. warning: field is never used: `outer`
  1312. --> src/test/ui/associated-type-bounds/struct-bounds.rs:36:5
  1313. |
  1314. 36 | outer: T::As1,
  1315. | ^^^^^^^^^^^^^
  1316.  
  1317. warning: field is never used: `inner`
  1318. --> src/test/ui/associated-type-bounds/struct-bounds.rs:37:5
  1319. |
  1320. 37 | inner: <T::As1 as Tr2>::As2,
  1321. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1322.  
  1323. warning: field is never used: `outest`
  1324. --> src/test/ui/associated-type-bounds/struct-bounds.rs:41:5
  1325. |
  1326. 41 | outest: T,
  1327. | ^^^^^^^^^
  1328.  
  1329. warning: field is never used: `outer`
  1330. --> src/test/ui/associated-type-bounds/struct-bounds.rs:42:5
  1331. |
  1332. 42 | outer: &'static T::As1,
  1333. | ^^^^^^^^^^^^^^^^^^^^^^
  1334.  
  1335. warning: struct is never constructed: `St5`
  1336. --> src/test/ui/associated-type-bounds/struct-bounds.rs:50:1
  1337. |
  1338. 50 | struct St5<'x1, 'x2, T: Tr1<As1: for<'l> Tr4<'l, As4: Copy>>> {
  1339. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  1340.  
  1341. warning: struct is never constructed: `St7`
  1342. --> src/test/ui/associated-type-bounds/struct-bounds.rs:65:1
  1343. |
  1344. 65 | / struct St7<'a, 'b, T> // `<T::As1 as Tr2>::As2: 'a` is implied.
  1345. 66 | | where
  1346. 67 | | T: Tr1<As1: Tr2>,
  1347. 68 | | {
  1348. 69 | | f0: &'a T,
  1349. 70 | | f1: &'b <T::As1 as Tr2>::As2,
  1350. 71 | | }
  1351. | |_^
  1352.  
  1353. >>> src/test/ui/associated-type-bounds/trait-params.rs
  1354.  
  1355. error[E0601]: `main` function not found in crate `trait_params`
  1356. |
  1357. = note: consider adding a `main` function to `src/test/ui/associated-type-bounds/trait-params.rs`
  1358.  
  1359. error: aborting due to previous error
  1360.  
  1361. For more information about this error, try `rustc --explain E0601`.
  1362. >>> src/test/ui/associated-type-bounds/type-alias.rs
  1363.  
  1364. error: expected one of `(`, `+`, `,`, `::`, `<`, or `>`, found `type`
  1365. --> src/test/ui/associated-type-bounds/type-alias.rs:13:1
  1366. |
  1367. 11 | type _TaWhere4<T> where T: Iterator<Item: 'static + Copy + S
  1368. | - expected one of `(`, `+`, `,`, `::`, `<`, or `>` here
  1369. 12 | // ~^ WARNING where clauses are not enforced in type aliasesend> = T;
  1370. 13 | type _TaWhere5<T> where T: Iterator<Item: for<'a> Into<&'a u8>> = T;
  1371. | ^^^^ unexpected token
  1372.  
  1373. error: aborting due to previous error
  1374.  
  1375. >>> src/test/ui/associated-type-bounds/union-bounds.rs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement